-
March 26th, 2009, 08:48 AM
#1
Radio buttons in Repeater
I want to use radio buttons in Repeater. But allowing only single selection is not possible Setting the GroupName property doesn't help. for more details view http://support.microsoft.com/default...;en-us;Q316495
.
I modified the radio button to a normal HTML control and it worked out.
following code:
<input id="chkReq" type="radio" name="rbRequirement"
value="<%#DataBinder.Eval(Container.DataItem,"Positionno")%>" runat="server" /></td>
My difficulty is how can I triger a function, on radio button click, written in code behind page.
I tried in following way...
<input id="chkReq" type="radio" name="rbRequirement"
value="<%#DataBinder.Eval(Container.DataItem,"Positionno")%>" runat="server" onclick="myfunc"/></td>
but it did not work.
Can any one help me out from this problem.
-
March 26th, 2009, 10:28 AM
#2
Re: Radio buttons in Repeater
HI! Did you check this thread! http://www.codeguru.com/forum/showthread.php?t=472529
Looks like you have similar requirements.
-
March 27th, 2009, 11:52 PM
#3
Re: Radio buttons in Repeater
Taurn K,
Thanks a lot for ur reply.. but my problem is .. I want that when a radio button is clicked.. its text should be printed on a label in the same window.
I have already binded the radio button with the required fields.
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
|
Click Here to Expand Forum to Full Width
|