我的repeater空间中有四个Radiobutton按钮,我想为他们各绑定一个点击事件,怎么写代码?
就是想制作成一个单选题的,单击每个选项,然后就在数据库插入A/B/C,请问,代码要怎么编写
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
var temp = e.Item.FindControl("RadioButton1") as RadioButton;
temp.Click += new EventHandler(事件处理程序);
}
这个事件处理程序要写什么呢?能不能帮我举个例子。我还是不明白
而且,还有这个问题