C# '之后的客户端渲染问题;第&x27页;电话

C# '之后的客户端渲染问题;第&x27页;电话,c#,asp.net,postback,cross-posting,C#,Asp.net,Postback,Cross Posting,我尝试过“PreviousPage”、“PreviousPage.IsCrossPagePostBack”Page.PreviousPage、“Page.title” 这会导致客户端停止呈现此行之后的页面 简单例子 protected void Page_Load(object sender, EventArgs e) { response.write("I can see this"); string test = PreviousPage.IsCrossPagePostBack.toStri

我尝试过“PreviousPage”、“PreviousPage.IsCrossPagePostBack”Page.PreviousPage、“Page.title”

这会导致客户端停止呈现此行之后的页面

简单例子

protected void Page_Load(object sender, EventArgs e)
{
response.write("I can see this");
string test = PreviousPage.IsCrossPagePostBack.toString(); //Any page call Causes client rendering to freeze
response.write("But i cant see this");   
System.Windows.Forms.MessageBox.Show("However i can see this,proving that the server is still running the code");   
}

任何人都可以,有什么想法吗

您是否已检查上一页是否为空

发件人:

PreviousPage属性为空 参考(Visual Basic中无任何内容) 当用户请求该页面时 直接从服务器

另外-
MessageBox
以web形式出现,这不是一个好主意。。。也许可以使用内置的答案

结果是,这件事很愚蠢。代码结束了

我用来触发回发的按钮有一个用于重定向的处理程序,我只是删除了该处理程序,保留了回发URL设置和魔力