| | |
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!
![]() |
•
•
Join Date: Oct 2006
Posts: 2
Reputation:
Solved Threads: 0
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.
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
- Tutorial: Understanding ASP classes (ASP)
- Need to implemnt the RTF print in application (VB.NET)
- problems accessing class instances (Java)
- Accessing a variable of another class (Java)
- writing a class without the class declaration? (C++)
- "String class" (Java)
- Bank account class (C++)
- Tips on windows programming (C++)
Other Threads in the VB.NET Forum
- Previous Thread: how to protect volume
- Next Thread: Point within a polygon HELP!
| Thread Tools | Search this Thread |
.net .net2008 30minutes 2005 2008 access account arithmetic array basic beginner browser button buttons center check code component connectionstring crystalreport cuesent data database databasesearch datagrid datagridview date datetimepicker design designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter folder forms ftp generatetags hardcopy html images input insert intel monitor net networking open output panel passingparameters peertopeervideostreaming picturebox picturebox1 port printing problem problemwithinstallation project reports" searchvb.net select serial settings shutdown sqlserver survey tcp temperature text textbox timespan toolbox transparency trim updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





