-
Dynamic User Control Problem
hi I was curious if anyone has found the solution for Dynamically maintaining ViewState of the Loaded User Control.
I have a RadioButtonList inside a Panel which is created during design time. Now depending on Option 1, 2 or 3, I am Dynamically Loading the UserControl1.ascx or UserControl2.ascx or UserControl3.ascx respectively.
The problem is I have to select the option 1 twice to maintain and retreive its value (same for option 2 and 3, have to select it twice to gets its value)
Can someone help with this with an example in VB.NET
thanks
- webc
-
Page.RegisterHiddenField(this.UniqueID + "option", 1);
where 1 denoted your user control 1
Now when you select the options radiobutton list use javascript to update this field and retreive with a postback done at the end of the javascript function. I did this when i wrote custom server controls
Sri
Similar Threads
-
Replies: 1
Last Post: 08-18-2005, 01:19 PM
-
By KineticKill in forum .NET
Replies: 0
Last Post: 08-16-2005, 10:36 AM
-
By npswarna_13 in forum ASP.NET
Replies: 0
Last Post: 06-27-2005, 06:09 AM
-
Replies: 0
Last Post: 03-26-2003, 02:17 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks