while deploying i'm getting this error,
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
i'm deploying web based application but inside my project i used a windows.forms for displaying a message box, wat shall i do now , can anyone suggest wat to do, if this is because of message box, shall i delete message box function in windows form and instead of that shall i use alert box in java script or ajax function, can also give me that code for message box in javascript or ajax function
Posted Jul 28, 2008, 8:24 AM
Hi,
Test Following Code
<
html xmlns="http://www.w3.org/1999/xhtml" ><
head runat="server"> <title>Untitled Pagetitle> <script language='javascript' type="text/javascript"> function validate(){
if(document.getElementById('txt_Name').value==""){
alert(
'Enter Name'); return false;}
return true;}
script> head><
body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txt_Name" runat="server">asp:TextBox> <asp:Button ID="btn_Validate" Text="Validate" runat="server" OnClientClick="return validate()" /> div> form> body> html>