当前位置: 代码迷 >> ASP.NET >> repeater中LinkButton的链接事件,该如何解决
  详细解决方案

repeater中LinkButton的链接事件,该如何解决

热度:929   发布时间:2013-02-25 00:00:00.0
repeater中LinkButton的链接事件
我在repeater里用了个LinkButton
后台ItemCommand事件里给它的PostBackUrl一个链接
可每次要点两次才能链接到那个页面
这是什么原因啊
有没有解决办法?

------解决方案--------------------------------------------------------
LinkButton Link = (LinkButton)e.Item.FindControl("Link");

 if (条件)
 {
Response.Redirect("sjsDetail.aspx?code=" + lb_code.Text);
//Response.Write("<script>window.open('要跳转的页面');</script>");
 }
  相关解决方案