Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 10-16-2006, 04:58 PM   #1
Default Dynamically adding WebUserControl in aspx page


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
sureshsekaran is offline   Reply With Quote
Old 10-18-2006, 07:52 AM   #2
John_Nick
Junior Member
 
Join Date: Oct 2006
Posts: 4
Default
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
John_Nick is offline   Reply With Quote
Old 10-18-2006, 08:20 AM   #3
sureshsekaran
Junior Member
 
Join Date: Oct 2006
Posts: 2
Default
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
sureshsekaran is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46