K
Karthick Kumar
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
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