System.Web.UI.Page inherits System.Web.UI.Control, so you can identify any
Control in its immediate hierarchy via the Control.FindControl() method. To
access the Form, and it's child Controls, you would use
Page.FindControl("SearchResults") which returns the Form Control.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Chris Lane" <Ch*******@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
I have a form declared like this in the html
<form id="SearchResults" method="post" runat="server"
name="frmMain"></form>
I don't see the form anywhere in the codebehind and I am not able to
access
it like this
Me.frmMain or Me.SearchResults.
Is it not possible to access the form from the code behind or am I missing
something?
Thanks