如何将DateTime选择器查看为列表视图ASP.NET [英] How to view DateTime picker as a list view ASP.NET

查看:51
本文介绍了如何将DateTime选择器查看为列表视图ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向我的ASP.NET页面添加日历,我希望日历显示为dropdwon列表或类似于Windows应用程序的列表框.但是显示了日历的整个视图.

问题是,我有一个文本框,包含数字1到30的列表框和一个按钮.

首先,用户选择一个日期,然后使用列表框从列表框中选择一个数字.日历值增加10,然后从列表框中减去用户选择的数字.当用户单击按钮时,该值将显示在另一个窗口中.

我的代码就像,

1)DateTimemodifiedDate = DateTimePicker1.Value.AddDay(14);
当用户选择一个日期时,该值将由14-lsitbox值限定.

那么DateTime选择器的值将被5重用.
这意味着结果将显示在另一个窗口中.

我已经在WinApp上尝试了它并且可以使用,但是在asp.net上却不行

help help help ...

I want add a calendar to my ASP.NET page, I want the calendar is shown as a dropdwon list or listbox like windows application. But the whole view of calendar is shown.

The question is, I have a textbox, listbox that contain numbers 1 to 30 and a button.

First the user pick a date and then use the list box to choose one number from a list box. The calendar value boosts by 10 and then subtract the number that the user pick from the list box. When the user click the button the value shows in another window.

my code is like,

1)DateTime modifiedDate = DateTimePicker1.Value.AddDay(14);
when the user picks a date the value will be bosted by 14 - the lsitbox value.

then the value of the DateTime picker is redused by 5.
it means the result shows in another windows.

I have tried it on WinApp and it works, but not on asp.net

help help help...

推荐答案

老兄,
您将进入不必要的操作序列.
使用DateTime选择器有最好的方法,您可以使用jQuery创建日期时间选择器,也可以拥有自己的控件.
由于日期时间场景的下拉菜单是旧模式,因此请尝试灌输后期的UI设计模式和结构.
我的建议是使用jQuery来完成您的工作.
Hi Dude,
You are just going into un-necessary action sequence.
There are best ways in working with DateTime picker, either you can approach jQuery to create a Date Time picker or else you can have your own control.
Because dropdowns for date time scenario is old patter, try to inculcate late UI design patterns and structure.
My suggestion is to carry your fwd with jQuery.


这篇关于如何将DateTime选择器查看为列表视图ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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