1.

Why Do I Get The Error Message "system.invalidoperationexception: It Is Invalid To Show A Modal Dialog Or Form When The Application Is Not Running In Userinteractive Mode. Specify The Servicenotification Or Defaultdesktoponly Style To Display A ...."?

Answer»

You can't use MSGBOX or MessageBox.Show in ASP.NET WebForm. You maybe use:
VB.NET
Response.Write("&LT;script>ALERT('Hello');</script>")

C#
Response.Write("<script>alert('Hello');</script>");

You can't use MsgBox or MessageBox.Show in ASP.NET WebForm. You maybe use:
VB.NET
Response.Write("<script>alert('Hello');</script>")

C#
Response.Write("<script>alert('Hello');</script>");



Discussion

No Comment Found