Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2004, 07:30 AM
Registered User
 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get values of dynamically created radio button con


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






Regards,
Karthick





Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamically created control's values to database saket123 ASP.NET 2.0 Basics 4 August 13th, 2008 12:49 AM
Comparing values between different MSHFlexGrid Con davekrunal46 Pro VB Databases 0 November 28th, 2005 07:36 AM
Dynamically created code Puck312 Pro VB 6 3 September 7th, 2005 01:21 PM
Button acts depending on radio button values janise Access 4 March 10th, 2004 12:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.