显示模式弹出窗口时如何暂停保存数据的处理?当我单击该模式弹出窗口内的按钮时,保存数据的执行将继续处理。
我的模态弹出窗口就像一个消息框......
这是我的示例代码:
bool overlap= false;
foreach (ListItem item in chkMBoxEmployeeList.Items)
{
if (overlap == true)
{
//Saving of data
}
else if (overlap == false)
{
ModalpopupExtender2.Show();
//In this condition, I will pause the execution of saving the data
}
}
//I used this after the ModalpopupExtender2.Show():
return;
//but I think, this will not be the answer, because my code will become very long if use that. I will rewrite again my code in the button in modalpopup if I use that.
我应该使用线程吗?线程在 ASP.Net 上工作吗?