![]() |
|
|
|
#1 |
|
Hi
I have created two web usercontrol and i want to add one during runtime .If i drag web usercontrol and drop in aspx page in design time it works well.But using coding like, Control control1 =LoadControl("WebUserControl2.ascx"); Page.Controls.Add(control1); I get error, 'HiddenField' must be placed inside a form tag with runat=server. sureshsekaran |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Oct 2006
Posts: 4
|
I did not understand the problem.
u r just adding the control to the page. But how will u use that dynamically added controls ! John_Nick |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2006
Posts: 2
|
Hi Nick!
I didnt mention 'dynamically created'.I want to add controls dynamically with some condition. Do we create dynamic Web User control? Thanks for the reply.. sureshsekaran |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sessions in Aspx getting mixed up | jet vedi | Software | 0 | 07-23-2009 07:25 PM |
| export aspx page to word format or pdf format as it is display in aspx page | getmeaditi | Software | 0 | 03-10-2009 07:15 AM |
| how to access iframe from an aspx page | eyal1234 | Software | 1 | 07-22-2008 10:57 AM |
| How to load Two iframe in one aspx page? | pratima | Software | 2 | 02-02-2008 03:17 AM |
| Enbedding aspx page into another aspx page and post back | Naga_01 | Software | 0 | 06-06-2006 06:51 AM |