我应该使用什么术语? [英] What term should I use?

查看:76
本文介绍了我应该使用什么术语?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找答案,但我不知道这个场景的正确用语是什么...



我想添加2个下拉列表(开始日期和结束日期(我想使用日历来挑选日期,但我不知道如何)



我有一个包含订单日期的gridview,我想从中选择日期并在我从2下拉列表中选择的日期显示数据(开始日期和结束日期)



提前感谢您的关注:)

解决方案

为什么这些下拉控件是否可以使用行 DateTimePicker ?像这样的东西: DateTimePicker Web Control [ ^ ]。



另请参阅我过去的回答:仅限TextBox(HH:mm) tt)格式使用asp.net [ ^ ]。



-SA

在你给定的场景中,我会使用这种方法:



我会使用文本框和下拉菜单

TextBox1 =日期



只需从type =text更改为文本框的type =date。



< asp:TextBox ID =   TextBox1 runat =   server type =   date >  < /   asp:TextBox  >  





也许从gridview中选择我建议使用SELECT语句然后将其分配到文本框


Im searching an answer but I dont know what is the right term to call to this scenario...

I want to add 2 dropdownlist(START date and END date(I want to use calendar to pick date but i dont know how)

and I have a gridview containing dates of order and i want to select date from it and show the data in the date the i pick from 2 dropdownlist(start date and end date)

Thank you in advance for those concern :)

解决方案

Why those drop-down controls if you can use something line DateTimePicker? Something like this one: DateTimePicker Web Control[^].

See also my past answer: TextBox allow only (HH:mm tt) format using asp.net[^].

—SA


In your given scenario, I would have used this approach:

I would use a textbox and a dropdown
TextBox1= date

Just change from type="text" to type="date" of your textbox.

<asp:TextBox ID="TextBox1" runat="server" type="date"></asp:TextBox>



Perhaps when it comes to selecting from gridview I would suggest using SELECT statements then assign it to the textbox


这篇关于我应该使用什么术语?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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