Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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#.
Posted

1 solution

You will need to use a javascript validation on the client side to check if the from date and to date are not null. In case they are null display the message.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900