G
Guest
Hi there,
I have the following code which displays a message box on my asp.net page...
i can call this function from a button click or whatever, but the only
problem is that it turns the whole window white and displays the message,
then once you click OK, then the screen goes back to normal... how do i
change it so that the message box just pops up on top of the window and
doesn't turn it all white..???
Public Sub ASPNET_MsgBox(ByVal Message As String)
Try
System.Web.HttpContext.Current.Response.Write("<SCRIPT
LANGUAGE=""JavaScript"">" & vbCrLf)
System.Web.HttpContext.Current.Response.Write("alert(""" &
Message & """)" & vbCrLf)
System.Web.HttpContext.Current.Response.Write("</SCRIPT>")
Catch ex As Exception
End Try
End Sub
I have the following code which displays a message box on my asp.net page...
i can call this function from a button click or whatever, but the only
problem is that it turns the whole window white and displays the message,
then once you click OK, then the screen goes back to normal... how do i
change it so that the message box just pops up on top of the window and
doesn't turn it all white..???
Public Sub ASPNET_MsgBox(ByVal Message As String)
Try
System.Web.HttpContext.Current.Response.Write("<SCRIPT
LANGUAGE=""JavaScript"">" & vbCrLf)
System.Web.HttpContext.Current.Response.Write("alert(""" &
Message & """)" & vbCrLf)
System.Web.HttpContext.Current.Response.Write("</SCRIPT>")
Catch ex As Exception
End Try
End Sub