Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can i use the variables of one model class into another model class in ASP.net MVC3

If so How?????

I mean,


Let us say i have three classes in Model namely Login, User, Company...

I declared the variables for User and Company too with same names as that are in my db.

Now,

I want to use the variables of user class into Login Class without desinging table for Login and without new variables...

so that i will do login validations in the login page with the variables of User Class..

I hope u understand it...

Now guide me...

see once this link http://forums.asp.net/t/1802181.aspx/1?Does+not+contain+a+definition+
Posted
Updated 9-May-12 22:57pm
v2
Comments
P_A_1 10-May-12 5:37am    
Any suggestions regarding this?.....

1 solution

ya finally..

i got my task completed....

and thanks for supporting me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900