Server Error in '/' Application. Showing a modal dialog box or form

Hi
Using IIS 6, SQL2005, I need help

Server Error in ‘/’ Application.
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:

Line 211: myConn = Nothing
Line 212: Catch ex As Exception
Line 213: MsgBox(ex.Message)
Line 214: End Try
Line 215: End Sub

refer to http://mclogic.com.sg.tempdomain.biz/Products.aspx?CatID=03

You cannot use just about anything in the System.Windows.Forms, including MessageBox, in a web application. If you need to show alerts, you should use javascript to make that happen.

can you show me how to use javascript MessageBox? can show me example code.

<script language=‘javascript’ type=‘text/javascript’>
alert(‘Your Message Here’);
</script>

or

<script language=‘javascript’ type=‘text/javascript’>
confirm(‘Your Message Here’);
</script>

you can use the JS like this.