logo       

how do i get the form name attribute value?: msg#00133

windows.devel.dotnet.web

Subject: how do i get the form name attribute value?

I've added a name attribute to my webform and now would like to know how to
read it. I think it should be easy since name is one of the standard
attributes of form.



I get the form id value like this:



string id = "";

foreach(Control ctrl in Page.Controls)

if (ctrl is System.Web.UI.HtmlControls.HtmlForm)

{

id = ctrl.ID;

break;

}



Don't see how to get name though, thanks for any help.










===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise