Hi,
I have used the Advance edit template for my scheduler,I which I'm trying to Bind the Date value but some how Its not binding and giving me the the error "Specified cast is Invalid".The Dateformat is "MM/dd/yyyy" ,used the raddatepicker.
advanceusercontrol.ascx.cs
webform1.aspx
I have placed the sample code which i tried .
"Start='<%# Bind("DATE") %>' " this section gives me the error
Regards
"
I have used the Advance edit template for my scheduler,I which I'm trying to Bind the Date value but some how Its not binding and giving me the the error "Specified cast is Invalid".The Dateformat is "MM/dd/yyyy" ,used the raddatepicker.
advanceusercontrol.ascx.cs
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public DateTime Start
{ get { return Convert.ToDateTime(dpDtofVisit.DbSelectedDate.ToString()); } set { dpDtofVisit.DbSelectedDate = value; } }webform1.aspx
<AdvancedEditTemplate><br><span class="Apple-tab-span" style="white-space:pre"> </span> <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Reason") %>'<br><span class="Apple-tab-span" style="white-space:pre"> </span> Name='<%# Bind("Name") %>' Office='<%# Bind("Office") %>' Status='<%# Bind("Status") %>' Start='<%# Bind("DATE") %>' <br> <span class="Apple-tab-span" style="white-space:pre"> </span> PatientName='<%# Bind("PatNum") %>' /><span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre"> </span> <br><span class="Apple-tab-span" style="white-space:pre"> </span> </AdvancedEditTemplate>I have placed the sample code which i tried .
"Start='<%# Bind("DATE") %>' " this section gives me the error
Regards
"