开发者

ASP.NET QueryExtender parameter date format string

I would like to use QueryExtender control to retrieve records in a given date range.

<asp:QueryExtender ID="qeFilter" runat="server" TargetControlID="EntityDataSource1">
    <asp:RangeExpression DataField="Date" MaxT开发者_运维知识库ype="Inclusive" MinType="Inclusive">
        <asp:ControlParameter ControlID="txtFrom" />
        <asp:ControlParameter ControlID="txtTo" />
    </asp:RangeExpression>
</asp:QueryExtender>

The problem is that date in text boxes is in "d.M.yyyy" format. I am unable to figure out how to specify the format for the asp:ControlParameter. Any ideas?


I was able to solve the problem by setting the culture attribute for the page.

<%@ Page UICulture="cs" Culture="cs-CZ" %>

Here is more details: http://msdn.microsoft.com/en-us/library/bz9tc508.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜