Hi All,
I just want to display a message using msgbox() and I keep on getting this
error message.
It is invalid to show a modal dialog or form when the application is not
running in UserInteractive mode. Specify the ServiceNotifica tion or
DefaultDesktopO nly style to display a notification from a service
application.
This error came from test.aspx.vb
Private Sub Img_OK_Click(By Val sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs) Handles Img_OK.Click
If txt_Username.Te xt = "ABC" Then
Msgbox("Hello")
End If
End Sub
Why is wrong with this line? TIA
I just want to display a message using msgbox() and I keep on getting this
error message.
It is invalid to show a modal dialog or form when the application is not
running in UserInteractive mode. Specify the ServiceNotifica tion or
DefaultDesktopO nly style to display a notification from a service
application.
This error came from test.aspx.vb
Private Sub Img_OK_Click(By Val sender As System.Object, ByVal e As
System.Web.UI.I mageClickEventA rgs) Handles Img_OK.Click
If txt_Username.Te xt = "ABC" Then
Msgbox("Hello")
End If
End Sub
Why is wrong with this line? TIA
Comment