It Says, The type or namespace name 'Events' does not exist in the namespace 'DayPilot.Web.Ui' (are you missing an assembly reference?)
i Have included Daypivot dll in my project and here is my code
default.aspx
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
<daypilot:daypilotcalendar id="DayPilotCalendar1" runat="server" DataStartField="eventstart" DataEndField="eventend" DataTextField="name" DataValueField="id"
Days="7" OnEventMove="DayPilotCalendar1_EventMove" EventMoveHandling="CallBack" OnLoad="Page_Load">
</daypilot:daypilotcalendar>
default.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DayPilotCalendar1.StartDate = DayPilot.Utils.Week.FirstDayOfWeek(new DateTime(2009, 1, 1));
var obj = new cale();
obj.eventstart = DayPilotCalendar1.StartDate;
obj.en = DayPilotCalendar1.Days;
DayPilotCalendar1.DataSource = obj.dbGetEvents();
DayPilotCalendar1.DataBind();
}
}
protected void DayPilotCalendar1_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
// DayPilot.Web.Ui.Events.
{
var obj = new cale();
obj.eventstart = e.NewStart;
obj.eventend = e.NewEnd;
obj.id = e.Value;
obj.dbUpdateEvent();
obj.eventstart = DayPilotCalendar1.StartDate;
obj.en = DayPilotCalendar1.Days;
DayPilotCalendar1.DataSource = obj.dbGetEvents();
DayPilotCalendar1.DataBind();
}