Click here to Skip to main content
15,559,491 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have one radiolist control in which i have two radio buttons. I want to insert Value "Left" if radio button one is selected into database using sqldatasource control. else insert right.

I know how to insert value of text box like below using insert parameters.
VB
<asp:ControlParameter ControlID="txt_name_associate" Name="name" PropertyName="Text" Type="String" />
Posted
Updated 11-Jan-13 5:53am
v2

1 solution

C#
<asp:controlparameter controlid="radiobuttonlist1" name="name" propertyname="SelectedValue" type="String" />
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900