943,947 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 4658
  • VB.NET RSS
Mar 21st, 2007
0

How can I create an explicit instance of a class?

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CooperDee is offline Offline
2 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in VB.NET Forum Timeline: how to protect volume
Next Thread in VB.NET Forum Timeline: Point within a polygon HELP!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC