narasiman rao

narasiman rao

  • NA
  • 519
  • 768.9k

Validate the From date and To date in asp.net using C#

Aug 21 2014 11:51 AM
 
i want the user to select the date from calendar and then display the excel record into database.
In run mode as follows

Fromdate calendar1 Todate calendar2 Import(Button)

I want the user to select the Fromdate and Todate
And then click the Import(Button).
Then excel record is displayed in the Gridview.

Suppose when user did not select the from date and todate,and click the Import button.
Then i want to display the message "Please select the From date and To Date"

for that how can i validate in asp.net using c#.