473,395 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Easy Radio Button Question

I have a webform with three radio buttons and a button. I also have a
..vb module that doing most of the processing. I want to be able to get
the value of the radio button selected within the .vb module. How?

When I try to set a value in the code, Intellisense says "...is not
accessible in this context because it is protected"

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
4 1021
Can't you pass the radiobuttonlist.selectedvalue to whatever function is
doing the processing in the back end?

'webform code
processMyStuff(radiobuttonlist.selectedvalue)

'module code
public sub processMyStuff(selectedvalue as string)
...
end sub

"Amy Snyder" <am**@yahoo.com> wrote in message
news:O3**************@tk2msftngp13.phx.gbl...
I have a webform with three radio buttons and a button. I also have a
vb module that doing most of the processing. I want to be able to get
the value of the radio button selected within the .vb module. How?

When I try to set a value in the code, Intellisense says "...is not
accessible in this context because it is protected"

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
Create a method that accepts input and call it from the page, passing in the
value of the radio button(s).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Amy Snyder" <am**@yahoo.com> wrote in message
news:O3**************@tk2msftngp13.phx.gbl...
I have a webform with three radio buttons and a button. I also have a
vb module that doing most of the processing. I want to be able to get
the value of the radio button selected within the .vb module. How?

When I try to set a value in the code, Intellisense says "...is not
accessible in this context because it is protected"

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3
Can't you pass the radiobuttonlist.selectedvalue to whatever function is
doing the processing in the back end?

'webform code
processMyStuff(radiobuttonlist.selectedvalue)

'module code
public sub processMyStuff(selectedvalue as string)
...
end sub

"Amy Snyder" <am**@yahoo.com> wrote in message
news:O3**************@tk2msftngp13.phx.gbl...
I have a webform with three radio buttons and a button. I also have a
vb module that doing most of the processing. I want to be able to get
the value of the radio button selected within the .vb module. How?

When I try to set a value in the code, Intellisense says "...is not
accessible in this context because it is protected"

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4
Create a method that accepts input and call it from the page, passing in the
value of the radio button(s).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Amy Snyder" <am**@yahoo.com> wrote in message
news:O3**************@tk2msftngp13.phx.gbl...
I have a webform with three radio buttons and a button. I also have a
vb module that doing most of the processing. I want to be able to get
the value of the radio button selected within the .vb module. How?

When I try to set a value in the code, Intellisense says "...is not
accessible in this context because it is protected"

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
5
by: Digital Puer | last post by:
I have the following HTML form: - radio button A (default selected) - radio button B - input field, of type "file" with "Choose" button - submit button I would like to have it so that if the...
33
by: Brian | last post by:
I have a list of plain HTML radio buttons that I want to be able to loop through, get the values from them and insert them into a db. each one should be a separate record... Can anyone please give...
2
by: NishSF | last post by:
Would anyone have any suggestions/javascript code so that if one clicks the Radio Button "Yes" below he has the option of selecting any of the six CheckBox below. If the user clicks on Radio Button...
1
by: Jerry | last post by:
We have a 10-question quiz for kids, each question being a yes or no answer using radio selections. I'd like to keep a current total of yes's and no's at the bottom of the quiz (if the user selects...
7
by: nathaniel.k.lee | last post by:
Is it not possible, in IE, to dynamically click a radio button? I'm grabbing some values from a database and using them to populate radio buttons on a page. I have alternate code for Firefox...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
1
by: runway27 | last post by:
hi i have registration form where user selects from a drop down to select their area code apart from filling other details in the form. in the next page which is a confirmation page i would like...
11
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.