I designed a custom control that combines a calendar control, a textbox, and a checkbox control called myCalendar.ascx.
I want to capture whether or not this checkbox is checked or not and pass it as a boolean (or bit?) to a stored procedure which returns results based on it.
I am successfully passing the value of my textbox control called txtToDate by using
in other words, txtToDate lives on a my custom control object called $calDatePicker that lives in myCalendar.ascx, which in turn is sitting on my aspx page
But this does not seem to work with the checkbox.
I have no idea how to refer to my checkbox called chkApply and pass the value to my sproc as a paramter
I tried $calDatePicker$chkApply.checked in the aspx, but that didn't work. I also noodled around on the server side with Page.FindControl("chkApply") to no avail.
I'm totally stuck! What am I missing?
I want to capture whether or not this checkbox is checked or not and pass it as a boolean (or bit?) to a stored procedure which returns results based on it.
I am successfully passing the value of my textbox control called txtToDate by using
Code:
<asp:ControlParameter ControlID="cphMenu3[COLOR=red]$calDatePicker$txtToDate" [/color]Name="ExpDate" PropertyName="Text" Type="DateTime" DefaultValue="cphMenu3$calDatePicker$txtToDate" />
in other words, txtToDate lives on a my custom control object called $calDatePicker that lives in myCalendar.ascx, which in turn is sitting on my aspx page
But this does not seem to work with the checkbox.
I have no idea how to refer to my checkbox called chkApply and pass the value to my sproc as a paramter
I tried $calDatePicker$chkApply.checked in the aspx, but that didn't work. I also noodled around on the server side with Page.FindControl("chkApply") to no avail.
I'm totally stuck! What am I missing?