2
Answers

Entity Framework

when i go to create controller using code first approach in entity framework.then i got error unable to retrieve  metadata .
Answers (2)
0
Mohammed Ismail

Mohammed Ismail

NA 3 0 18y
Hi Kavita:

For your second question removing of previous and next month days:  you can not remove them but you can hide them by setting those days back and forecolors using OtherMonthDayStyle attribute of Calendar.

Eg: <OtherMonthDayStyle ForeColor="Blue" BorderStyle="None" BorderColor="Blue" BackColor="Blue"></OtherMonthDayStyle>


But those cells are selectable in order to suppress this, add this in DayRender event of calendar:

if (e.Day.IsOtherMonth==true)
   {
    e.Cell.BackColor = System.Drawing.Color.Blue;
    e.Cell.ForeColor = System.Drawing.Color.Blue;
    e.Day.IsSelectable = false;
  }


in Page_Load event add this:

Calendar1.Attributes["onMouseDown"] = "JavaScript:Void(0);";

try out this.