Get values of dynamically created radio button control

Discussion in 'ASP .Net Web Controls' started by Karthick Kumar, Nov 5, 2004.

  1. Hi,

    I have the following code which displays all the images from a
    specific folder with a Radio button in it:

    Dim objFile
    i = 1
    For Each objFile In objFolder.Files

    If (i = 1) Then Response.Write("<TR>")

    Response.Write("<TD align='center'>")
    Response.Write("<IMG src='" & f_strCardPath & "\" &
    objFile.Name & "' width='150px' height='150px'>")
    Response.Write("<BR><INPUT type='radio' name='rdCardPics'
    value='" & objFile.Name & "'")
    Response.Write("</TD>")

    If (i = 2) Then
    Response.Write("</TR>")
    i = 1
    Else
    i = i + 1
    End If
    Next

    Now, the above with the other needed code is in a function (in
    ..aspx.vb
    file) and I call it in the .aspx file as <%
    DispImages(\imagefolderpath) %>

    But once the user selects the image he wants, I want to pick up the
    selected value of the radio button, how do I do that ?. Anybody got
    any example on this ?.

    Please help, thanks.

    Regards,
    Karthick
    Karthick Kumar, Nov 5, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karthick Kumar
    Replies:
    1
    Views:
    782
  2. Scott D Johnson
    Replies:
    1
    Views:
    1,043
    Scott D Johnson
    Sep 27, 2006
  3. Ang
    Replies:
    7
    Views:
    1,919
    Mark Rae [MVP]
    Feb 22, 2008
  4. msimmons
    Replies:
    0
    Views:
    449
    msimmons
    Jul 16, 2009
  5. Hiten
    Replies:
    1
    Views:
    607
    Vidar Petursson
    May 26, 2004
Loading...

Share This Page