Click here to Skip to main content
15,913,944 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem in EventHandling Pin
S. Senthil Kumar5-Dec-05 4:11
S. Senthil Kumar5-Dec-05 4:11 
Questionbin and obj folder in C# windows application Pin
nbobby4-Dec-05 19:27
nbobby4-Dec-05 19:27 
AnswerRe: bin and obj folder in C# windows application Pin
Heath Stewart4-Dec-05 19:47
protectorHeath Stewart4-Dec-05 19:47 
GeneralRe: bin and obj folder in C# windows application Pin
nbobby4-Dec-05 20:11
nbobby4-Dec-05 20:11 
AnswerRe: bin and obj folder in C# windows application Pin
har04mich5-Dec-05 6:52
har04mich5-Dec-05 6:52 
Questionurgent Help on C# Pin
momoo4-Dec-05 19:24
momoo4-Dec-05 19:24 
AnswerRe: urgent Help on C# Pin
Heath Stewart4-Dec-05 19:40
protectorHeath Stewart4-Dec-05 19:40 
Questionreferring to Class Instance from other page Pin
vikings4-Dec-05 17:46
vikings4-Dec-05 17:46 
Hello,

I've declared an instance of a class in the startup page of my app
eg Car mycar = new Car()

and have assigned various attributes into it.

I would like to refer to the instance mycar in other pages (either in the aspx or .cs )

eg mycar.model

I'm getting The type or namespace name 'mycar' could not be found (are you missing a using directive or an assembly reference?)

What's the best way to declare the instance of this class to my other pages?

thanks,



John
AnswerRe: referring to Class Instance from other page Pin
Heath Stewart4-Dec-05 19:34
protectorHeath Stewart4-Dec-05 19:34 
GeneralRe: referring to Class Instance from other page Pin
vikings4-Dec-05 19:50
vikings4-Dec-05 19:50 
GeneralRe: referring to Class Instance from other page Pin
Heath Stewart4-Dec-05 20:05
protectorHeath Stewart4-Dec-05 20:05 
AnswerRe: referring to Class Instance from other page Pin
nbobby4-Dec-05 19:46
nbobby4-Dec-05 19:46 
GeneralRe: referring to Class Instance from other page Pin
vikings4-Dec-05 19:52
vikings4-Dec-05 19:52 
GeneralRe: referring to Class Instance from other page Pin
Heath Stewart4-Dec-05 20:08
protectorHeath Stewart4-Dec-05 20:08 
GeneralRe: referring to Class Instance from other page Pin
nbobby4-Dec-05 20:18
nbobby4-Dec-05 20:18 
GeneralRe: referring to Class Instance from other page Pin
Heath Stewart4-Dec-05 20:23
protectorHeath Stewart4-Dec-05 20:23 
GeneralRe: referring to Class Instance from other page Pin
vikings4-Dec-05 20:43
vikings4-Dec-05 20:43 
GeneralRe: referring to Class Instance from other page Pin
nbobby4-Dec-05 22:55
nbobby4-Dec-05 22:55 
QuestionTopMost property of a form Pin
Ruskin Dantra4-Dec-05 10:22
Ruskin Dantra4-Dec-05 10:22 
AnswerRe: TopMost property of a form Pin
ekynox4-Dec-05 12:42
ekynox4-Dec-05 12:42 
GeneralRe: TopMost property of a form Pin
Ruskin Dantra4-Dec-05 13:40
Ruskin Dantra4-Dec-05 13:40 
AnswerRe: TopMost property of a form Pin
Luis Alonso Ramos5-Dec-05 6:20
Luis Alonso Ramos5-Dec-05 6:20 
GeneralRe: TopMost property of a form Pin
Ruskin Dantra5-Dec-05 11:38
Ruskin Dantra5-Dec-05 11:38 
GeneralRe: TopMost property of a form Pin
Luis Alonso Ramos5-Dec-05 15:54
Luis Alonso Ramos5-Dec-05 15:54 
QuestionReference to simple types Pin
Yoyosch4-Dec-05 9:21
Yoyosch4-Dec-05 9:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.