二CalendarExtenders? [英] Two CalendarExtenders?
本文介绍了二CalendarExtenders?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个弹出的AJAX calendarextender的填充与所选择的日期,(MM / DD / YYYY)的文本框。这个工程。我想捕捉同日在一个额外的文本框有不同的格式(年月日)。首先是显示器和第二个日期是gridview的查询参数。这是做了两个calandarextenders? (顺便说一句,我使用C#)
I have a popup ajax calendarextender that populates a text box with the selected date, (MM/dd/yyyy). This works. I want to capture the same date in an additional text box with a different format (yyyyMMdd). The first is for display and the second date is a parameter for gridview query. Is this done with two calandarextenders? (btw I'm using C#)
推荐答案
如果你提供一个查询,你可以只提供给上述的查询。
If you are supplying one to a query, you could just change the parameter value in code before supplying it to the query.
var datetimeForQuery = extenderVariable.SelectedDate.ToString("yyyyMMdd");
这篇关于二CalendarExtenders?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文