|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
A few numbers for the beginning
What it replacesIt replaces a combination of two separate dropdowns (one for month, another for year).Typical usageOn reporting pages for listing values/summaries for a given time period.How it saves your time
Sample 1: Switching the languageYou have two options for choosing the language:1. Change the Culture in your Page declaration: <%@ Page Language="C#" … Culture="en-US" %>2. Set the Culture property of MonthPicker control: MonthPicker1.Culture = "en-US"; Sample 2: SqlDataSource and GridView integrationDayPilot MonthPicker can be used directly in SqlDataSource declaration:<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MonthPicker %>" SelectCommand="SELECT [Id], [Name], [Start] FROM [events] WHERE ([Start] >= @Start) AND ([Start] < @End)"> <SelectParameters> <asp:ControlParameter ControlID="MonthPicker1" PropertyName="StartDate" Name="Start" Type="DateTime" /> <asp:ControlParameter ControlID="MonthPicker1" PropertyName="EndDate" Name="End" Type="DateTime" /> </SelectParameters> </asp:SqlDataSource> Links
|
|||||||||||||||||||||||||||||||||||