Posted on: 11/18/2014 5:37:43 PM | Views : 450

I use this code for a message box.  It works great, but I have it in each of many .vb pages.  Where can I put this code to call if from a single location?  Also, what do I have to do to make the application find it?  Thanks in advance!
Public Sub ASPNET_MsgBox(ByVal Message As String) 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>") End Sub
Public Sub MsgBox(ByVal F As Object, ByVal sMsg As String) Dim sb As New StringBuilder() Dim oFormObject As System.Web.UI.Control = Nothing sMs ...

Go to the complete details ...