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頁面上。當我點擊我網頁上的按鈕時,此彈出窗口應該顯示出來。問題在於,有時它顯示在前臺,但有時我必須實際點擊文檔上的小圖標。在後臺彈出消息框
任何想法?
嗯。您是否在ASP.NET應用程序的服務器上顯示Windows窗體對話框? – jadarnel27
是的......我是這樣的一個問題? – user541597
當我使用JavaScript時,它工作正常,但我可以得到我需要的變量。 – user541597