Hello everyone,
I have a Calendar control that needs to display a date taken from a database. I would like to databind the 'TodaysDate' property but this property is not decorated with the 'BindableAttribute' for some reason. This means the 'TodaysDate' property is not available in the Visual Studio databindings window.
My first question is, why does 'TodaysDate' not have BindableAttribute? It seems everyone will want to bind to this property.
Second, how can I bind to 'TodaysDate' (I want two-way binding). Since Visual Studio does not allow me to specify this property I am guessing I have to edit the aspx file, somehow. Is that correct?
Thanks very much.
===================
I know what was wrong. I needed to one-way bind the 'TodaysDate' property and I need to two-way bind the 'SelectedDate' property:
TodaysDate='' SelectedDate=''>
Binding the 'TodaysDate' property tells the Calendar to display the date from the database while binding the SelectedDate property tells the Calendar to send the newly selected date back to the database during an update.
It still seems weird that 'TodaysDate' is not decorated with the 'BindableAttribute'.
Hello everyone,
I have a Calendar control that needs to display a date taken from a database. I would like to databind the 'TodaysDate' property but this property is not decorated with the 'BindableAttribute' for some reason. This means the 'TodaysDate' property is not available in the Visual Studio databindings window.
My first question is, why does 'TodaysDate' not have BindableAttribute? It seems everyone will want to bind to this property.
Second, how can I bind to 'TodaysDate' (I want two-way binding). Since Visual Studio does not allow me to specify this property I am guessing I have to edit the aspx file, somehow. Is that correct?
Thanks very much.
===================
I know what was wrong. I needed to one-way bind the 'TodaysDate' property and I need to two-way bind the 'SelectedDate' property:
TodaysDate='' SelectedDate=''>
Binding the 'TodaysDate' property tells the Calendar to display the date from the database while binding the SelectedDate property tells the Calendar to send the newly selected date back to the database during an update.
It still seems weird that 'TodaysDate' is not decorated with the 'BindableAttribute'.