简体   繁体   English

事件完成后未显示消息框C#

[英]message box not displayed after event completes c#

We have C# web application ,on button click event we do a data load process using stored procedure which runs for 3 hours,after the procedure finish loading we display a message box using code 我们有C#Web应用程序,在单击按钮事件时,我们使用存储过程执行了数据加载过程,该过程运行了3个小时,过程加载完成后,我们使用代码显示了一个消息框

ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), scriptString, true);
radiobuttion.SelectedIndex = 2;

Ιf the procedure completes in 1 hour things are fine, if it runs for more than 2 hours, the page turns unresponsive (message box not displayed, radio button not changed). 如果该过程在1个小时内完成,则表示一切正常,如果运行超过2个小时,则该页面将无响应(消息框未显示,单选按钮未更改)。 Ι tried debug, the code process through all lines and completes with no display. 我尝试了调试,所有行的代码处理都没有显示完成。 Can anyone help? 有人可以帮忙吗?

Assuming this is an ASP .NET application, either your stored procedure is timing out or Session is abandoned by the time the procedure returns, thus no controls will work. 假设这是一个ASP .NET应用程序,则您的存储过程正在超时,或者Session在过程返回时被放弃,因此没有控件将起作用。 Check your Session State right before the messagebox/radio button actions take place. 在执行消息框/单选按钮操作之前,请检查您的会话状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM