Home > Archive > ASP .NET > September 2004 > Get the WebForm Name onLoad
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Get the WebForm Name onLoad
|
|
| Mariame 2004-09-28, 9:04 am |
| Hi Everyone
is there is a way to get the name of the WebForm Loaded & set it in a
Variable????
Thx in Adv.
| |
| Karl Seguin 2004-09-28, 9:04 am |
| 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
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mariame" <Mariame_Waguih@yahoo.com> wrote in message
news:%23ZVam%23UpEHA.3520@TK2MSFTNGP11.phx.gbl...
> Hi Everyone
>
> is there is a way to get the name of the WebForm Loaded & set it in a
> Variable????
>
> Thx in Adv.
>
>
| |
| Marc Pronovost 2004-09-29, 11:03 am |
| 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
"Karl Seguin" wrote:
> 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
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "Mariame" <Mariame_Waguih@yahoo.com> wrote in message
> news:%23ZVam%23UpEHA.3520@TK2MSFTNGP11.phx.gbl...
>
>
>
| |
| Karl Seguin 2004-09-29, 8:09 pm |
| Marc, the _ASP namespace is used when you batch compile, whereas ASP
namespace is used when you don't.
Unfortunetaly that's all I know about it :) and it comes from this KB:
http://support.microsoft.com/default.aspx?kbid=818537
which I once had problems with
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Marc Pronovost" <MarcPronovost@discussions.microsoft.com> wrote in message
news:0F869564-AD85-4430-B897-A10BF9E8F5BE@microsoft.com...
> 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".[color=darkred]
>
> Would you know why this is?
>
> Thanks,
> Marc
>
> "Karl Seguin" wrote:
>
being[color=darkred]
| |
| Marc Pronovost 2004-09-30, 2:57 am |
| 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
"Karl Seguin" wrote:
> Marc, the _ASP namespace is used when you batch compile, whereas ASP
> namespace is used when you don't.
>
> Unfortunetaly that's all I know about it :) and it comes from this KB:
> http://support.microsoft.com/default.aspx?kbid=818537
>
> which I once had problems with
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "Marc Pronovost" <MarcPronovost@discussions.microsoft.com> wrote in message
> news:0F869564-AD85-4430-B897-A10BF9E8F5BE@microsoft.com...
> environment.
> "_ASP.pagename_aspx".
> being
>
>
>
| |
| Karl Seguin 2004-09-30, 11:37 am |
| Sorry Marc,
I don't know...
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Marc Pronovost" <MarcPronovost@discussions.microsoft.com> wrote in message
news:45A99322-EB4A-4079-9DDC-8149B59AC970@microsoft.com...
> 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?[color=darkred]
>
> Thanks for your help!
> Marc
>
> "Karl Seguin" wrote:
>
message[color=darkred]
in a[color=darkred]
|
|
|
|
|