protected void LinkButton1_Click(object sender, EventArgs e)
{
Message_Model mm = new Message_Model();
String txt1 = null;
txt1 = Request.QueryString["txt"];
int txt = Convert.ToInt32(txt1);
//mm.MessageID = Convert.ToInt32(Session["MessageID"]);
mm.MessageDetail = Request.Form["content7"];
if (mb.Update(mm, txt))
{
Response.Write("<script>alert('恭喜!修改成功');</script>");
}
else
{
Response.Write("<script>alert('修改失败!');</script>");
}
}
MessageID 可以获取到它的值
MessageDetail 总是获取不到值
你是想要得到repeter绑定的列的Id是吧??
你的UI层代码如何写的,,截个图,