Version Compatibility: ASP.NET
More information: In ASP.NET, you cannot use the MessageBox class or MsgBox function like you can in a windows.forms application, but you can emulate this functionality by streaming out a javascript alert instruction. This function can dropped into any ASP.NET code behind module and used for this purpose.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Public Sub ASPNET_MsgBox(ByVal Message As String)
System.Web.HttpContext.Current.Response.Write("")
End Sub
0 comments:
Post a Comment