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
精彩评论