Hi
I have created One Application in C#.Net (Windows Appplication) and i have take two calendar drop down
1st is Start Date and 2nd is End Date While searching between start Date and End Date if user can enter the less date in end Date Box than Start Date So it should show the validation..
how it is possible please help me ..
Thanks and Regards
Kamlesh Nikam
Validation on Calendar
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Suthish NairRank #92 · 22.8K reputationPosted Feb 1, 2011, 1:26 AM EST
Madhu KRank #1,514 · 1.1K reputationPosted Feb 1, 2011, 8:14 PM EST
ControlToValidate="TextBox2"
OnServerValidate="CustomValidator1_ServerValidate">
protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
{
DateTime dt = Convert.ToDateTime("10/13/2010");
if (DateTime.Compare(Convert.ToDateTime(TextBox2.Text), dt) >= 0)
{
args.IsValid = true;
}
else
{
args.IsValid = false;
}
}
Suthish NairRank #92 · 22.8K reputationPosted Feb 1, 2011, 9:28 PM EST
Its a windows application.
Madhu KRank #1,514 · 1.1K reputationPosted Feb 1, 2011, 9:31 PM EST
My mistake missed it.
Suthish NairRank #92 · 22.8K reputationPosted Feb 4, 2011, 9:16 AM EST
So other members can easily find the answers.