Get the WebForm Name onLoad

  • Thread starter Thread starter Mariame
  • Start date Start date
M

Mariame

Hi Everyone

is there is a way to get the name of the WebForm Loaded & set it in a
Variable????

Thx in Adv.
 
Not 100% sure what you are asking. You can get the path of the page being
requested via Request.Url.AbsolutePath or just the page via
Request.Url.CurrentDocument.

If you want the type of the page, you can use Page.GetType()


Karl
 
I'm using Page.GetType().ToString() in both my test and production environment.

In test (with a debug build), I get "ASP.pagename_aspx".
In production with the same code (release build), I get "_ASP.pagename_aspx".

Would you know why this is?

Thanks,
Marc
 
Sorry, but the material I get when searching for "batch compile" results in
..NET 2.0 material.

I'm using ASP.NET 1.0, compiling in VS.NET by hitting CTRL+SHIFT+B, and then
copying the web site (via VS.NET's copy web button) to test and then to
production. What's the difference between what I'm doing and batch compiling?

Thanks for your help!
Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top