How to Create Dynamic Radio Buttons as Server Control?

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 8th, 2006, 05:38
New Member
Join Date: Jul 2006
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question How to Create Dynamic Radio Buttons as Server Control?

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.

Reply With Quote

Reply

Tags
create, dynamic, radio, buttons, server, control

Thread Tools

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

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

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


All times are GMT. The time now is 06:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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