點擊按鈕刷新頁面定位到當時的位置

方法一this 前臺: spa <a id="s1" name="s1"></a> ip 後臺:string ScriptManager.RegisterStartupScript(this, GetType(), "", "alert('成功!');location.href='AAA.aspx#s1'", true); io 方法二後臺 若是錨點很差用,可使用 TextBox1.Focus()
相關文章
相關標籤/搜索