读书人

repeater中LinkButton的链接事件,该如

发布时间: 2012-07-28 12:25:13 作者: rapoo

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

读书人网 >asp.net

热点推荐