|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to use class instance in asp.net
hi ,
i posted a related question already but i dint get any reply so ia m rephrasing the question. I have a Class and i want to be able to use its instance example public class Enrolltest : System.Web.UI.Page { MyClass mc = new MyClass(); mc.mymethod(); } when i do this i get an error telling me there is no name space what should i do .,,. i dont want to create a dll and add it to assembly and all that stuff. is it possible at all. Am i misisng somthing. thanks. |
|
#2
|
|||
|
|||
|
I think you need to create a solution with classes
|
|
#3
|
||||
|
||||
|
You need to include the namespace for System.Web.UI.Page. Lookup the "Inherits" command.
-Dave |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > how to use class instance in asp.net |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|