Groups | Blog | Home
all groups > dotnet general > november 2004 >

dotnet general : Retrieve web form name or id?


Cor Ligthert
11/7/2004 8:44:35 PM
Edward,

me.name (VBNet)
this.name (C#)

I hope this helps?

Cor


"Edward Lim" <ed.spam.filter@iinet.net.au>
[quoted text, click to view]

JD
11/7/2004 9:49:07 PM
Probably something like:

MyPage.Form.UniqueId
Or
MyPage.Form.Name


[quoted text, click to view]

JD
11/7/2004 9:52:35 PM
Oops forget the MyPage, just "Form.UniqueId" or "Form.Name".


[quoted text, click to view]

Edward Lim
11/7/2004 11:46:14 PM
Hi guys,

is it possible to retrieve the name or the id of a form in an ASP.Net page?
In the code behind inside the page class, I would like to be able to
reference to that "form object" and to retrieve its name or id. is that at
all possible?

Cheers




Edward Lim
11/13/2004 11:54:49 PM
Hi JD,

I can't seem to find the methods "UniqueId" or "Name" in the form class, and
I presume you actually meant

Request.Form.UniqueId and Request.Form.Name right?

Unless we are talking different version of Dot Net Framework. I am using 1.1
only.

Thanks and Regards,
Edward

[quoted text, click to view]

AddThis Social Bookmark Button