ref→http://stackoverflow.com/questions/2345807/window-location-does-not-work-on-chrome-browser
ref→http://msdn.microsoft.com/zh-tw/library/system.web.ui.page.registerclientscriptblock(v=vs.80).aspx
Page.RegisterClientScriptBlock("alert", "<script>alert('請先登入會員!');</script>");
Page.RegisterClientScriptBlock("clientScript", "<script>window.location='index.aspx';window.location.href='index.aspx';</script>");
沒有留言:
張貼留言