1
Reply

CODE CONTENT

sunakshi saxena

sunakshi saxena

Nov 9 2011 2:00 AM
1.4k
I am using below code line which gives gray color to all saturdays in a calender, I want that it will give color only 2, 4 saturday then how will I modify this code line.Please Help Urgently



<td align="Center" id="td_Saturday" runat="server" height="50px" class='<%# Convert.ToString(DataBinder.Eval(Container.DataItem, "WEEK")).ToUpper()=="1"?"txt-grey":(Convert.ToString(DataBinder.Eval(Container.DataItem, "WEEK")).ToUpper()==("4").ToUpper()?"txt-grey":(Convert.ToString(DataBinder.Eval(Container.DataItem, "WEEK")).ToUpper()==("3").ToUpper()?"txt-grey":(Convert.ToString(DataBinder.Eval(Container.DataItem, "WEEK")).ToUpper()==("2").ToUpper()?"txt-grey":(Convert.ToString(DataBinder.Eval(Container.DataItem, "WEEK")).ToUpper()==("5").ToUpper()?"txt-grey":"gridItemStyle")))) %>'

Answers (1)