I think I figured it out...Using themed css files requires a header control on the page

Discussion in 'ASP.NET 2.0' started by DCottle, Jun 23, 2005.

  1. I get the following error when specifying my beta website

    http://beta-136325.server1.dotnetsandbox.net


    Using themed css files requires a header control on the page. (e.g. <head runat="server" />).





    I also get the same error when specifying my website name + the name of the built in index page


    http://beta-136325.server1.dotnetsandbox.net/index.aspx

    I do NOT get the error when specifying my own page


    <a target="_blank" href="http://beta-136325.server1.dotnetsandbox.net/default.aspx">http://beta-136325.server1.dotnetsandbox.net/default.aspx</A>


    I renamed their index.aspx to index2.aspx (thus removing it from the default page list) and now everything is cool and loads correctly by only specifying the site url.

    Moral of the story: The page that specifies the order of the default pages (https://my.discountasp.net/addons/betahosting.aspx) is wrong on their website. Index.aspx is first, then Default.aspx


    Hope this helps people!

    David
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    thank you for pointing that out. i'll let the SA team know.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. No Problem...don't suppose you would reward me with actually hosting my domain name against my asp 2.0 site would you? I am so desperate to get a domain attached to that account that I am actually looking into setting up my own web server to host my stuff.

    david
     
  4. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    Sorry, we do not point customer domains to the ASP.NET 2.0 beta hosting test account.

    DiscountASP.NET
    http://www.DiscountASP.NET
     
  5. re: domain names


    You know, most Domain Registrars provide "domain forwarding" and "domain-gripping". If not, change registrars. (or get an el-cheapo $8.99 domain at dodaddy.com ...no affiliation...don't buy all their other stuff.)


    domain forwarding simply means that if a client enters abc.com, then the registrar can auto-forward them to (eg.) http://sanbox.host.com/xyz/abc/123/ThisIsMyPage.aspx


    with domain gripping, the user would simply alwayssee abc.com in the address bar (and not the long ugly URL above),


    Note: (test this but) you may (?) have issues with passing parameters thru the address query string if you opt for domain gripping since you'd lose the http://abc.com?UserID=2034.( it would just get converted back to abc.com) Simply use other means such as Session("UserID")=2034 to create a global variable.


    Hope that helps!


    Cheers,
    RedDog [​IMG]
     

Share This Page