DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   How can I create an explicit instance of a class? (http://www.daniweb.com/forums/thread72949.html)

CooperDee Mar 21st, 2007 1:47 pm
How can I create an explicit instance of a class?
 
Hi my program won’t let me create a session, application, or cache variable. It also won’t allow me to do this:

Response.Redirect("default.aspx?question=1")
Dim num As String = Request.QueryString("question")

In all cases, I get the message: You cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.

My question is how can I create an explicit instance of one of these classes?

Thanks for any help.


All times are GMT -4. The time now is 12:36 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC