I'm using ASP.NET (VB), and I'm trying to use a class to display a custom popup function (alert().
The problem here is that is says I need an explicit instance of a class to use response. (Not sure how to do that...)
Public Class msgClass
Public Shared Sub alert(ByVal msg As String)
Response.Write("<script>alert('" + msg.tostring + "');</script>")
This is how I call it in my main ASPX.vb page:
I've tried using Public Sub, but when it gets there, it tells me that "response..." can't be used like that.
Dim a As New msgClass