I am new to MVC.
I have created a grid in my view using a foreach loop and a partial view;
View Complete Post
i created a Grid view that contain onecoloum Expiredate a i require the date compare to today date if it isif Todaydate<=Expiredate (difference 30 days then color is red Todaydate<=Expiredate (difference 15 days then color is blue Todaydate<=Expiredate (difference 5 days then color is yellow example id Expire date Filename 1 22/08/10 a(Red ) 2 22/09/10 b(yellow ) 3 8/09/10 c(green ) how do it
i am new to the IT industry , so i am struggling for few things, i request you all to help me out. I am using c# as my backend.
here is what i need -
1) i need an excel-sheet like gridview whose grid items are textboxes.
2) I need a Date-picker, which when selected, selects the week.
3)This is what is more imp to me- when i select a date, that particular week's dates and days(starting from monday) has to be my gridview's column headers. I am doing this for a timesheet application.
4) my Gridview's first column fields has to be dropdown lists which should populate its listitems from DB.
I'm trying to use a RequiredFieldValidator with a TextBox that has a jQuery UI DatePicker attached to it. I'm finding that selecting a date from the datepicker does not trigger the RequiredFieldValidator to recognize that a value is now present. Thus, only server side validation is working for the RequiredFieldValidator and not client side. Any ideas on how I may fix this issue so both client side and server side validation fires?
Below is some sample code of this issue. To reproduce this situation: 1) Click the PostBack button (RequiredFieldValidator will indicate field is required) 2) Pick a date using the date picker 3) Notice that the RequiredFieldValidator's text still displays when it shouldn't.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">