This is a discussion on "How to Create Dynamic Radio Buttons as Server Control?" within the ASP.NET Forum section. This forum, and the thread "How to Create Dynamic Radio Buttons as Server Control? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
How to Create Dynamic Radio Buttons as Server Control?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Can you please help me out in solving a complex part of my current project? I have a requirement for an Intranet portal project to display the list of some link modules assigned to each user. I need to display all the primary link modules under their respective global link. I have used dynamic tables and dynamic rows for this purpose. Against each primary link i need to display three radio buttons apply/add and view and manage. These 3 radio buttons need to be in one group dynamically, as there may be nos. of dynamic rows and no. of dynamic radio buttons. I need all the radio buttons to be unique and can be identified at the run time so that i can use them as server controls.
I tried in this way: <%For i = 0 To objDs.Tables(0).Rows.Count - 1%> <%glinkid = objDs.Tables(0).Rows(i)(1).ToString()%> <%plidm = objDs1.Tables("tabledata").Rows(j)(1).ToString() & "radio3"%> <tr> <td> <% gcheck = hid.Value.Split(",") For m = 0 To gcheck.Length - 1 If (glinkid = gcheck(m)) Then globalcheck.Checked = True <input type="radio" name="<%= r%>" id="<%=plidm%>" runat="server"/> end if next%> </td></tr> But the result was: Parser Error Message: '<%=plidm%>' is not a valid identifier. How to solve this? I've tried a lot searched a no of sites but failed. Now this is the last hope. |
|
|
![]() |
| Tags |
| create, dynamic, radio, buttons, server, control |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Help with Radio buttons | Oak | JavaScript Forum | 17 | Feb 2nd, 2008 09:44 |
| Radio Buttons and Javascript | activeware | JavaScript Forum | 6 | Dec 11th, 2007 18:02 |
| How do i submit a form with radio buttons ? | Accurax | Web Page Design | 5 | May 12th, 2007 18:34 |
| help with pagination and html radio buttons | AdRock | PHP Forum | 5 | Jul 27th, 2006 12:10 |
| Radio Buttons | redhead | Web Page Design | 2 | Apr 12th, 2004 19:00 |