473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Get the WebForm Name onLoad

Hi Everyone

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

Thx in Adv.
Nov 18 '05 #1
5 2601
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" <Ma************@yahoo.com> wrote in message
news:%2******************@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.

Nov 18 '05 #2
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" <Ma************@yahoo.com> wrote in message
news:%2******************@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.


Nov 18 '05 #3
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" <Ma***********@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.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".
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" <Ma************@yahoo.com> wrote in message
news:%2******************@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.


Nov 18 '05 #4
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" <Ma***********@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.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".

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" <Ma************@yahoo.com> wrote in message
news:%2******************@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.
>
>


Nov 18 '05 #5
Sorry Marc,
I don't know...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Marc Pronovost" <Ma***********@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.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?
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" <Ma***********@discussions.microsoft.com> wrote in message news:0F**********************************@microsof t.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".

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" <Ma************@yahoo.com> wrote in message
> news:%2******************@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.
> >
> >
>
>
>


Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Phillip N Rounds | last post by:
I have a webform, from which I have to submit info to another site. Their instructions are to have a html form, with the following as the submit: <form method="post"...
3
by: NeverLift | last post by:
But, if it's not open, I don't want to open it . . . using window.open will open it if it doesn't exist, even if the url in that open is null (the window is then empty -- but it's open). The...
1
by: hqdtech | last post by:
how to refresh webform from other webform I have 2 webform, i want if webform A was close then webform B wil refresh. And the problem second: how to catch packet on the network in C#. ...
1
by: Tom Wild | last post by:
Hi I have a listbox on a webform which has Autopostback set to true. When the user selects an item in the listbox and the form reloads, the listbox scrolls to put the selected item as high up...
3
by: Ipsita | last post by:
Hi, I am explaining the scenario of what I am trying to do: - I have a webform with some controls, from which I am taking the data. eg say Username, password - I am passing these data as...
1
by: reidarT | last post by:
I have a webform and found some code where I understand some of it, but not all The code is as follows public static void SetFocus(Control control) { StringBuilder sb = new StringBuilder(); ...
2
by: ad | last post by:
I have a webform call MyWebPage, which is inherited from a Base web page call BaseWebPage. There is a Page_load event in the BaseWebForm. Need it add a Page_Load event like below in the...
2
by: NN | last post by:
Hello, I have a problem :) I have a webform in which I have the event Onload that refers to a script that find in a database for an image and then show it in the WebForm. The problem is that I...
1
by: Christian Cambier | last post by:
Hi, in VS.NET 2008, how do I know what form-eventhandler exist? how can I add a form-eventhandler in the code-behind file apart from manually? cause when I select the properties of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.