//Method which raise the event protected virtual void OnDateSelection(DateSelectedEventArgs e) { if (DateselectedEvent != null) { DateselectedEvent(this, e); } }
protected void Calendar1_SelectionChanged(object sender, EventArgs e) { TextBox1.Text = Calendar1.SelectedDate.ToShortDateString(); Calendar1.Visible = false; CalenderVisibilityChangedEventArgs cvedata = new CalenderVisibilityChangedEventArgs(false); OnCalenderVsibilityChanged(cvedata); DateSelectedEventArgs dsedata = new DateSelectedEventArgs(Calendar1.SelectedDate); OnDateSelection(dsedata); }
private void CalenderUserControl_DateselectedEvent(object sender, DateSelectedEventArgs e) { Response.Write("" + e.RevealDateselected.ToShortDateString()); //throw new NotImplementedException(); }