Discussion:
How to get the HtmlForm element of an ASP.NET Page?
(too old to reply)
Ollie Riches
2005-05-03 13:38:49 UTC
Permalink
you can use the Page.FindControl method, e.g.

System.Web.UI.HtmlControls.HtmlForm form = Page.FindControl("Form1") as
System.Web.UI.HtmlControls.HtmlForm;
--
HTH

Ollie Riches
http://www.phoneanalyser.net

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
Hello, All,
I just want to know that generally how to get the HtmlForm element in an
ASP.NET Page?
Can anybody help? Please:)
Best regards,
Laser Lu.
Robbe Morris [C# MVP]
2005-05-04 00:41:57 UTC
Permalink
In your code behind, it is "this" or "Me".
--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net/home/listings.aspx
Hello, All,
I just want to know that generally how to get the HtmlForm element in an
ASP.NET Page?
Can anybody help? Please:)
Best regards,
Laser Lu.
Loading...