[Webinar] Learn how to a build a cloud-first strategyRegister Now


Take back a vaule of RadioButtionList

Posted on 2004-11-05
Medium Priority
Last Modified: 2012-05-05
I used RadioButtonList on ASP.NET page

If RadioButtonList.Selecteditem.value = 1 Then
    MyCommand.Parameters("@Type").Value = "W"
     MyCommand.Parameters("@Type").Value = "S"
End If

Then store Value to MSSQL

Now I need to create a page for record editing, how to take back the value on RadioButtionList of ASP.NET Page

If RadioButtonList value = "W"
  <asp:ListItem value="1" Selected>
End If
If RadioButtonList value = "S"
  <asp:ListItem value="2" Selected>
End If

Question by:rhinoceros
LVL 28

Accepted Solution

mmarinov earned 200 total points
ID: 12506641
Hi rhinoceros,

have you tried with

RadioButtonList.SelectedValue ="W" ?
this should select the item in the radiobuttonlist that contains value "W"

LVL 13

Author Comment

ID: 12765647
Hi mmarinov,

Can I ask you one more question please?

The Syntax:
If RadioButtonList.SelectedValue ="W" then ...

It's worked on normal .aspx page. (I write it by WebMatrix and run). But I tried to post this file on Visual Studio .Net for webservice project to compile and running. It rejected me that SelectedValue  is not a member of RadioButtonList. Any idea please ?

Thanks !

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month20 days, 13 hours left to enroll

865 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question