How to retrieve data from database to radiobuttonlist?
Supposed I have the form below with values coming from a database, how do I know which Item was selected selected? Please not value store on db is as text not true or false. ---- aspx page-----<form...
View ArticleRe: How to retrieve data from database to radiobuttonlist?
string sel=radiolist1.SelectedValue; in gridview you can bind SelectedValue to db field like this: SelectedValue='<%# bind("fieldname") %>'
View ArticleRe: How to retrieve data from database to radiobuttonlist?
<asp:RadioButtonList id="radiolist1" runat="server"...
View ArticleRe: How to retrieve data from database to radiobuttonlist?
I tried your suggestion but the value for the following is always empty. radiolist1.Items.FindByValue(reader["softwareType"].ToString())however, if I do a response.write I get the value printed out....
View ArticleRe: How to retrieve data from database to radiobuttonlist?
hi, ListItem in RadioButtonList was int the same group.and we only can choose one,if the data from database and appear two select.it will can't work.Hope it can help you
View Article