Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have student name and status.i want to show status in color box format.suppose x student pass then show green box and y student red box. i want to show data in table format. i am using mvc with razor please help me.
Posted

1 solution

Its simple
Pass the status in View using Viewbag from controller.
Check the status if Passed or Failed.
Then use simple jquery to update the background with css.
 
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