T
Tim Greenwood
I am using the calendar control provided for ASP.NET. I am adding a
checkbox during the DayRender event as follows:
System.Web.UI.WebControls.CheckBox cb = new
System.Web.UI.WebControls.CheckBox();
cb = new System.Web.UI.WebControls.CheckBox();
cb.EnableViewState = true;
cb.ID="p" + e.Day.Date.ToShortDateString().Replace("/","_");
cb.CheckedChanged += new System.EventHandler(this.CheckBox_CheckedChanged);
cb.Text = "Play";
e.Cell.Controls.Add(cb);
I have a command button for submitting the changes but cannot figure out how
to access the dynamically created checkboxes. The WebCalendar does not
expose the table object it creates so how would I be able to access the
values of these checkboxes??
I've kind of reached my end here...any help would be most appreciated..
checkbox during the DayRender event as follows:
System.Web.UI.WebControls.CheckBox cb = new
System.Web.UI.WebControls.CheckBox();
cb = new System.Web.UI.WebControls.CheckBox();
cb.EnableViewState = true;
cb.ID="p" + e.Day.Date.ToShortDateString().Replace("/","_");
cb.CheckedChanged += new System.EventHandler(this.CheckBox_CheckedChanged);
cb.Text = "Play";
e.Cell.Controls.Add(cb);
I have a command button for submitting the changes but cannot figure out how
to access the dynamically created checkboxes. The WebCalendar does not
expose the table object it creates so how would I be able to access the
values of these checkboxes??
I've kind of reached my end here...any help would be most appreciated..