This is a small article which describes small code snippet which can be used to get access to the Html Form Control of an Aspx Page.
Given below is code for a class by name BasePage.
using
namespace
{
}
_pageform = control
This class is derived from the Page class of System.Web.UI.WebControls namespace.
Here we are overiding the AddedControl method of the base class and verfying if the control being added is a HtmlForm control and if it is then we are assigning the control to the _pageform variable.
Also the property PageForm allows us to access the Form Control from any class derived from the BasePage Class.