Page name different on discountASP than other hosts.

Discussion in 'ASP.NET / ASP.NET Core' started by LurkingVariable, Oct 6, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi All,

    I just transferred one of my apps over to dASP and wasted a few hours on an issue and I was hoping someone could tell me why. I have a user control that acts a little differently depending on which page is hosting it, so the controlchecks for the name of the page to see how to act. At my old host, and on my development machine, when I call

    Me.Page.GetType.ToString

    I get this: ASP.EditEmployee_aspx

    However, on the dASP server, I get this result: _ASP.EditEmployee_aspx

    Can anyone tell me why the underscore would be pre-pended to the page name on the dASP server but not on my old server or my dev machine? Thanks.

    -LV
     
  2. Good question. I haven't seen the name vary like that.


    Are you using the same framework on both servers?



    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. That "ASP" (or "_ASP" in your case) is the default namespace that .NET uses when it compiles does your JIT compile of your pages. Maybe the DiscountASP servers have it set to "_ASP" somehow? I've looked inthe configuration files and can't find anything that could do it there, so I have no idea how they'd do it, but that appears to be what's happening.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    i am not aware of such settings that we put in the root web.config.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page