How can I create an explicit instance of a class?

Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Oct 2006
Posts: 2
Reputation: CooperDee is an unknown quantity at this point 
Solved Threads: 0
CooperDee CooperDee is offline Offline
Newbie Poster

How can I create an explicit instance of a class?

 
0
  #1
Mar 21st, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC