這裏的「名稱」和「規格」是我的表的字段,我想在DataTextField
中顯示這兩個字段。我試過上面的代碼:我如何能夠在radiobuttonlist的DataTextField中給出兩個字符串?
RadioButtonList1.DataSource = dt;
RadioButtonList1.DataTextField = "name";
RadioButtonList1.DataTextField = "specification";
RadioButtonList1.DataBind();
但它不工作。
[在DataTextField中組合兩個字段。這是可能的嗎?](http://stackoverflow.com/questions/4217481/combining-two-fields-in-a-datatextfield-is-this-possible) – 2013-03-06 19:08:21