Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HELLO Friends,
i have such a situation that my controller some data in my view, or it may not pass.

now i want to know in my view whether my model having data or not.

actually i tell you in detail that i m showing data using table in my view.
problem is if my controller not does not returns table should not been display but table is displaying whether model having data or not.
so i want to check whether model have data or not so that i can put my in

IF( )


plz give me solution
Posted
Updated 26-May-10 23:29pm
v2
Comments
Tony Richards 27-May-10 5:30am    
Please don't SHOUT, even in titles, and please also avoid txtspk such as plz. These things make people less inclined to help.
More detail helps as well :)

Don't know exactly what you mean but by check if your model object is null, you should be able to find out whether it is created or not.
 
Share this answer
 
Please reword, difficult to see what you are asking for specifically.
 
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