锚标记的使用

 <a name="choose" href="#"></a>

<asp:Button runat="server" ID="BtnCondition" Text="选择" CssClass="btn_common" Style="float: right;
margin-right: 20px;" OnClick="BtnCondition_Click" />

 

protected void BtnCondition_Click(object sender, EventArgs e)
{

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script language='javascript'>window.location='#choose'</script>");

}

posted @ 2012-08-21 15:28  Crazylight  阅读(203)  评论(0编辑  收藏  举报