Z
Zeba
Hi guys,
I gave the following code in the page load function of one of my
codebehind pages :
if (!string.IsNullOrEmpty(keyword))
{
System.Windows.Forms.MessageBox.Show("Got your keyword!!");
SearchByKeyword();
}
I also included the reference for System.Windows.Forms, but I when I
try to view the page I get the error :
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.
What does this mean ?
Thanks!
I gave the following code in the page load function of one of my
codebehind pages :
if (!string.IsNullOrEmpty(keyword))
{
System.Windows.Forms.MessageBox.Show("Got your keyword!!");
SearchByKeyword();
}
I also included the reference for System.Windows.Forms, but I when I
try to view the page I get the error :
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.
What does this mean ?
Thanks!