CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 2/1/2005 12:03:20 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 44 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
"mtait" <>
NewsGroup User
Retrieving values from a dynamic radiobuttonlist2/1/2005 12:03:20 PM

0

Hi - I'm trying to do a dynamic survey app - and am adding RadioButtonList controls for each of the possible questions.

I can iterate through these as below, but how do I get the value of the selected item in the radio button list?

Thanks for any help,

Mark


Sub findAnswers(byval parent as control)
Dim c as control
for each c in parent.controls
if c.gettype() is gettype(RadioButtonList) then
'''found one
end if

if c.HasControls Then
findAnswers(c)
end if
Next
End Sub
"chuck.boyer" <
NewsGroup User
Re: Retrieving values from a dynamic radiobuttonlist2/1/2005 3:00:16 PM

0

This is for a checkbox list...but the concept should apply


For intCounter = 0 To myCheckList.Items.Count - 1
If myCheckList.Items(intCounter).Selected Then
myArrayList.Add(myCheckList.Items(intCounter).Value)
End If
Next

Chuck Boyer, MCSD .NET
Director of Production and Development
Edge Media Design
"mtait" <>
NewsGroup User
Re: Retrieving values from a dynamic radiobuttonlist2/1/2005 9:23:10 PM

0

Hi - thanks Chuck - where I'm stuck is where to read the value of the radiobuttonlist when I'm searching for it through the page (ie. I don't know what the name of it is yet, but have to change the c.gettype() into something like c.gettype.selectedvalue (that just doesn't work).

Thanks again,

Mark
"mxmissile" <>
NewsGroup User
Re: Retrieving values from a dynamic radiobuttonlist2/1/2005 11:46:20 PM

0

if(c.GetType() == typeof(RadioButtonList))

{
RadioButtonList rbl = (RadioButtonList) c;
//TODO found one stuff
}
Sorry my VB is not upto snuff...



http://www.heliosfx.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:













verify if a user is logged in

how do i block local intranet access to *some* vpn users on .net 1.1 framework?

assigning a role when creating a new user

principalpermissionattribute with multiple roles

rsa encrypt/decrypt question

createuserwizard & roles

password protecting a site

controlling user access using "allow" "deny"

web.config forms authentication error

not able to cast httpcontext.current to my iidentity and iprincipal based sub-classes

'general access denied error' in windows 2003 server active directory

launch external process with impersonated security

secure connection to a web service

formsauthenticationticket and iis restart

directoryservicescomexception appeared overnight.

help: unable to connect to sql server when doing asp .net configuration

multithreading

sendregemail error using createuserwizard

how can i identify web server that submit form?

login status control

how to allow anonymous users to have access to certain pages

problem in signout

login with ssl

how do i map users to nt- user's accounts through asp.net?

how to aunthenticate user in default.aspx?

how to retain authentication cookie after browser is closed and re-opened?

how can i manage dynamically the authorization into my web application?

login problems with multidomain app

profilemanager.getallprofiles -- timeout problem

forms authentication

turn off customer errors mode

create roles withing sql web admin - godaddy

audit trail processing?

how to simulate http statuscode 401

sending login credentials in a verification email

custom redirect - one thing roles in asp.net 2.0 forgot?

overriding 2.0 membership provider

how to use active directory (ad) for authentication

help! requesting best practices discussion regarding complex security scenario

custom role provider and menu control

form based authorisation

windows authentication and anon users

own membershipprovider implementation error: method not implemented

have some bugs in login control?

asp.net configuration not giving options for roles

can <deny users="*"/> be overwritten by <allow users="admin1,admin2"> ??

forms auth / login screen not displaying

error 401.2. server error

forms authentication without using web.config

creating cookie with php and reading with asp.net

   
  Privacy | Contact Us
All Times Are GMT