i have a radiobuttonlist contains 3 items 'red', green and blue', in asp tag i have set the selected value to 'red' by default . Below is the code :
<asp:RadioButtonList ID="rblcolor"
runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value ="0" Selected ="True">Red</asp:ListItem>
<asp:ListItem Value ="1">Green</asp:ListItem>
<asp:ListItem Value ="2">Blue</asp:ListItem>
</asp:RadioButtonList>
Now the problem is how to programmatically set the selected item/value during the page load (language c#) ? Let say i want to set to 'Blue' instead of 'Red' ..
and
another question...if user select the 'Green' color, how to get the value of 'Green' color as this value will be save to database table
Pls help! thanks
...
Go to the complete details ...