Click here to Skip to main content
15,949,741 members

Comments by Tiểu Tử Vdanh (Top 4 by date)

Tiểu Tử Vdanh 21-Jul-15 5:35am View    
ok ^_^
Tiểu Tử Vdanh 21-Jul-15 4:40am View    
Ok ,Thank you very much
I will try ,
Tiểu Tử Vdanh 21-Jul-15 2:52am View    
This is my code behind
public partial class ListeningSkillsPractice : System.Web.UI.Page
{
readonly ModelDataContext _myModel = new ModelDataContext();
public static string selectedValue = "";

protected void Page_Load(object sender, EventArgs e)
{

rpQuestion.DataSource = _myModel.Questions;
rpQuestion.DataBind();
}

protected void btn_submit_OnClick(object sender, EventArgs e)
{

foreach (RepeaterItem item in rpQuestion.Items)
{
if (item.ItemType == ListItemType.Item)
{

var rb = (RadioButtonList) item.FindControl("rpList");
selectedValue += rb.SelectedValue;
}






}
Response.Write("<Script>alert(" + selectedValue + ")</Script>");
}


protected void rpList_OnSelectedIndexChanged(object sender, EventArgs e)
{
//var rp = (RadioButtonList) rpQuestion.FindControl("rpList");
//selectedValue += rp.SelectedItem.Text;
}
Tiểu Tử Vdanh 21-Jul-15 2:41am View    
Thank you !
I also perform this solution, but it doesn't work
have you got any different solution?