|
-
Mar 25th, 2003, 07:13 AM
#1
Thread Starter
Member
problems with radio button list and drop down list (not combo)
i am facing a few problem...
first i have a dropdown list
next i have a radio button list
now the question is how i arrange the items in the drop down list in alphabetical order?
another question is how i store the value for radion button list in a session object?
-
Mar 25th, 2003, 11:06 AM
#2
Fanatic Member
where do you get the items from in your drop down list?
If you get them from a database then you can sort them alphabetically as part of the SQL statement.
-
Mar 25th, 2003, 11:30 AM
#3
You should ask this in the ASP.NET section.
-
Mar 25th, 2003, 11:24 PM
#4
Thread Starter
Member
-
Mar 27th, 2003, 07:23 PM
#5
Thread Starter
Member
-
Mar 27th, 2003, 10:11 PM
#6
Hyperactive Member
Well, as was said earlier, you could set the sorted property to true for the combo OR you could re-write the SQL statement to get the data sorted using the ORDER BY statement.
As for the radio button stored in the session object, you could do
VB Code:
Session("RadioButton") = RadioButton.SelectedIndex
This assumes you use a RadioButtonList for your radio buttons.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|