在日历中选择多个日期并将每个日期插入数据库? [英] select multiple date in calendar and insert each date to the database ?

查看:170
本文介绍了在日历中选择多个日期并将每个日期插入数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个日程表表,在aspx页面中,我需要为标题A插入多个日期,就像您在数据库scheduleID 1和2中看到的一样,用户只能像这样选择一个日期标题B和C

在日历中选择多个日期,并将每个日期插入数据库

那我该怎么做才能得到这个结果呢?


i have a schedule table, in the aspx page, i need to insert multiple date for title A like what you have see in the database scheduleID 1 and 2, the user can are allow to only select one date like it does for title B and C

select multiple date in calendar and insert each date to the database

so how should i do to obtain this result?


schedule
scheduleID title date
1           A    12/1/2012
2           A    13/1/2012
3           B    20/1/2012
4           C    28/1/2012

推荐答案

您将无法使用内置日历控件选择多个日期,但可以第三方控件,例如 Telerik [
You won''t be able to select multiple dates with the built-in calendar controls but you could with 3rd party controls, such as Telerik[^]

Entering into the database is the easy part, use an insert statement for each date.


这篇关于在日历中选择多个日期并将每个日期插入数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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