How to manupilate data in VIew using Asp.Net Mvc RC 2?
- by Picflight
I have a table [Users] with the following columns:
INT SmallDateTime Bit Bit
[UserId], [BirthDate], [Gender], [Active]
Gender and Active are Bit that hold either 0 or 1.
I am displaying this data in a table on my View.
For the Gender I want to display
'Male' or 'Female', how and where do
I manipulate the 1's and 0's? Is it done in the repository where I fetch the data or in the View?
For the Active column I want to show
a checkBox that will AutoPostBack on selection change
and update the Active filed in the
Database. How is this done without
Ajax or jQuery?