radiobuttonlist autopostback prob

Xecuter

New Member
&nbsp;<BR>"SELECT a, b, c FROM d;"<BR><BR>RadioButtonList1.DataSource = RS<BR>RadioButtonList1.DataTextField = "a"<BR>RadioButtonList1.DataValueField = "b" & ":" & "c"<BR>RadioButtonList1.DataBind()<BR><BR>on autopostback, RadioButtonList1.SelectedItem.Value is only giving me column "b"'s values....is there a way to set the value to sth like 'column b + ":" + column c'Dont think there is a way to bind more than one<BR>DataColumn to the DataTextField or DataValueField. The way I got around it was to let the actual SQL statement do the concatenation for me.<BR><BR>string strSQL = "SELECT b & '~' & c AS ab, a FROM d";<BR><BR>RadioButtonList1.DataSource = RS<BR>RadioButtonList1.DataTextField = "a"<BR>RadioButtonList1.DataValueField = "bc"<BR>RadioButtonList1.DataBind()<BR><BR>and then parse it for b and c...isnt taht interesting....<BR><BR>
 
Back
Top