用户希望从日历中选择日期,然后将Excel记录显示到Gridview中 [英] User want to select the date from calendar and then display the excel record into Gridview

查看:85
本文介绍了用户希望从日历中选择日期,然后将Excel记录显示到Gridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望用户从日历中选择日期,然后将excel记录显示到数据库中。





在运行模式下关闭





Fromdate calendar1 Todate calendar2导入(按钮)



我希望用户选择Fromdate和Todate

然后单击导入(按钮)。

然后excel记录显示在Gridview中。



假设用户没有选择日期和日期,并点击导入按钮。



然后我想显示消息请选择From日期和To Date



,我怎样才能在asp.net中使用c#验证。

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#.

推荐答案

您需要在客户端使用javascript验证来检查从日期和日期是否为空。如果它们为空,则显示消息。
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.


这篇关于用户希望从日历中选择日期,然后将Excel记录显示到Gridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆