J
Jack David
I am loading web user controls into a web page programitically using the
cone below:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
//Session["ScriptOID"]= "WonderKiss";
Session["ComponentOID"] = "Introduction";
Control c1 = LoadControl("Read_Text_1.ascx");
Page.Controls.Add(c1);
}
The problem is that if the control contains a form control I get an error
message that tells me that the control must be placed between form tags. The
example above is just a test of a single control. In the future I want to be
able to load multiple controls.
Any suggections
Thanks
Jack David
www.telasphere.com
cone below:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
//Session["ScriptOID"]= "WonderKiss";
Session["ComponentOID"] = "Introduction";
Control c1 = LoadControl("Read_Text_1.ascx");
Page.Controls.Add(c1);
}
The problem is that if the control contains a form control I get an error
message that tells me that the control must be placed between form tags. The
example above is just a test of a single control. In the future I want to be
able to load multiple controls.
Any suggections
Thanks
Jack David
www.telasphere.com