A
Andrew
Hello,
I'm getting an error in this code.
''' Begin code
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("ConnString") = "myString"
End Sub
Public Class Main
Inherits System.Web.UI.Page
Dim myConnection As SqlConnection = New
SqlConnection(Application("ConnString")) '<-- "Object reference not set to
an instance of an object"
...
End Class
''' End code
Not sure why I'm getting this error. Any help is very much appreciated.
Andrew
I'm getting an error in this code.
''' Begin code
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("ConnString") = "myString"
End Sub
Public Class Main
Inherits System.Web.UI.Page
Dim myConnection As SqlConnection = New
SqlConnection(Application("ConnString")) '<-- "Object reference not set to
an instance of an object"
...
End Class
''' End code
Not sure why I'm getting this error. Any help is very much appreciated.
Andrew