protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "javascript:" + this.ClientScript.GetPostBackEventReference(this, "12345")); }
}
继承IPostBackEventHandler public partial class Page1 : System.Web.UI.Page,IPostBackEventHandler 实现接口 public void RaisePostBackEvent(string eventArgument)
{
if (eventArgument == "12345")
{
Response.Write("DFSFSF");
}
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "javascript:" + this.ClientScript.GetPostBackEventReference(this, "12345")); }
}
继承IPostBackEventHandler public partial class Page1 : System.Web.UI.Page,IPostBackEventHandler 实现接口 public void RaisePostBackEvent(string eventArgument)
{
if (eventArgument == "12345")
{
Response.Write("DFSFSF");
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货