建议用Frame来提交function postUrl(url) {
var iframe = document.createElement('IFRAME');
iframe.src=url;
iframe.style.visibility = 'hidden';
document.body.appendChild(iframe);
document.body.removeChild(iframe);
}
string url = @"http://localhost:8080/lets/flowout?user="+Session["user"].ToString();
ClientScript.RegisterStartupScript(this.GetType(), "PostUrl", "postUrl('"+url+"')");
var iframe = document.createElement('IFRAME');
iframe.src=url;
iframe.style.visibility = 'hidden';
document.body.appendChild(iframe);
document.body.removeChild(iframe);
}
string url = @"http://localhost:8080/lets/flowout?user="+Session["user"].ToString();
ClientScript.RegisterStartupScript(this.GetType(), "PostUrl", "postUrl('"+url+"')");
在flowout页面load中跟踪一下, 确认有没有执行到这个页面