We have an already running asp.net
web site (lets call it example.com). In our new site (mostly HTML pages) we call login page from old site using thickbox
like following:
<a href="http://example.com/login.aspx?keepThis=true&TB_iframe=true&"
class="thickbox">login</a>
login.aspx is a simple page with two fields (id, pwd) and a login button. On login button's handler following code is run after validating the credentials:
response.Write("<script type='text/javascript'>
top.location.href='example.com/usermain.aspx'</script>");
On clicking login link it successfully loads login.aspx page in thickbox., but after logging in (clicking login button) in IE 8 it always redirect to http://example.com/index.aspx which is default home page for site (for guest/anonym visitrs). If I am using Firefox it properly redirects to http://example.com/usermain.aspx most of the times.
Please help me find out what I am doing wrong.
请改用window.location.assign(url)
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.