Hi,
I have a little question,
In my application i have a RadDatePicker declared so :
<telerik:RadDatePicker id="myDate" runat="server" Skin="Default">
<DateInput DateFormat="dd/MM/yyyy"></DateInput>
</telerik:RadDatePicker>
And i want to make it nullable : for the moment the user can write the date in the inputControl manually , but if he wants to set the Date to Null it's not possible.
In my CodeBehind i have a button which update the date in a database, it takes the code the selectedDate to make this update.
protected void lnkUpdateDate_Click(object sender, EventArgs e)
{
if(myDate.DateInput.SelectedValue != null)
Update((DateTime)myDate.DateInput.SelectedValue);
}
I can't make the difference between an emtpy inputextbox.text value and wrong date in input textbox.text
How can I test if the User has enter an empty string in order to make the update with a null Date ?
I have a little question,
In my application i have a RadDatePicker declared so :
<telerik:RadDatePicker id="myDate" runat="server" Skin="Default">
<DateInput DateFormat="dd/MM/yyyy"></DateInput>
</telerik:RadDatePicker>
And i want to make it nullable : for the moment the user can write the date in the inputControl manually , but if he wants to set the Date to Null it's not possible.
In my CodeBehind i have a button which update the date in a database, it takes the code the selectedDate to make this update.
protected void lnkUpdateDate_Click(object sender, EventArgs e)
{
if(myDate.DateInput.SelectedValue != null)
Update((DateTime)myDate.DateInput.SelectedValue);
}
I can't make the difference between an emtpy inputextbox.text value and wrong date in input textbox.text
How can I test if the User has enter an empty string in order to make the update with a null Date ?