954,198 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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.

CooperDee
Newbie Poster
2 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You