String message = "Are you sure the event: \"" + event_text + "\" has been complete for Loan# " + loannumber + "?"; //show popup to confirm the completion of event
var result = System.Windows.Forms.MessageBox.Show(message, "Loan # "+loannumber+" - Processed Event: "+event_text, System.Windows.Forms.MessageBoxButtons.YesNo);
if (result == System.Windows.Forms.DialogResult.No)
{
//do nothing close popup
}
else
{
//do something else
我的 ASP.NET 页面上有这段代码。当我单击网页上的按钮时,应该会显示此弹出窗口。问题是有时它会显示在前台,但有时我必须实际单击文档上的小图标。
有任何想法吗?