日期:2014-05-17  浏览次数:20452 次

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>");
 }