CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    175

    Question 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.

  2. #2
    Join Date
    Mar 2007
    Posts
    238

    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.

  3. #3
    Join Date
    Oct 2005
    Posts
    175

    Question 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
  •  





Click Here to Expand Forum to Full Width

Featured