Remember to add the AjaxControlToolkit as reference first.
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TestSearch.aspx.cs" Inherits="Track_TestSearch" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
Keyword
<asp:TextBox ID="TextBoxKeyword" runat="server"></asp:TextBox>
<br />
Course
<asp:TextBox ID="TextBoxCourse" runat="server"></asp:TextBox>
<br />
Start Date
<asp:TextBox ID="TextBoxStartDate" runat="server"></asp:TextBox>
<asp:CalendarExtender
ID="CalendarExtender1" runat="server" TargetControlID="TextBoxStartDate"
Format="dd-MMM-yyyy">
</asp:CalendarExtender>
End Date
<asp:TextBox ID="TextBoxEndDate" runat="server"></asp:TextBox>
<br />
<br />
<asp:CalendarExtender
ID="CalendarExtender2" runat="server" TargetControlID="TextBoxEndDate"
Format="dd-MMM-yyyy">
</asp:CalendarExtender>
<br />
Start Date
<asp:TextBox ID="TextBoxDateOfEntryStart" runat="server"></asp:TextBox>
<asp:CalendarExtender
ID="CalendarExtender3" runat="server" TargetControlID="TextBoxDateOfEntryStart"
Format="dd-MMM-yyyy">
</asp:CalendarExtender>
End Date
<asp:TextBox ID="TextBoxDateOfEntryEnd" runat="server"></asp:TextBox>
<br />
<br />
<asp:CalendarExtender
ID="CalendarExtender4" runat="server" TargetControlID="TextBoxDateOfEntryEnd"
Format="dd-MMM-yyyy">
</asp:CalendarExtender>
<asp:TextBox ID="TextBox1" Rows="15" Cols="100" TextMode="MultiLine" runat="server"></asp:TextBox>
<asp:Button ID="ButtonSearch" runat="server" Text="Search"
onclick="ButtonSearch_Click" />
<br />
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSourceEventsByCriteria" runat="server"
ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
SelectCommand="GetEventsByCriteria6" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter Name="Criteria" Type="String" />
<asp:Parameter Name="Keyword" Type="String" />
<asp:Parameter Name="Course" Type="String" />
<asp:Parameter Name="EventStartDate" Type="String" />
<asp:Parameter Name="EventEndDate" Type="String" />
<asp:Parameter Name="DateOfEntryStart" Type="String" />
<asp:Parameter Name="DateOfEntryEnd" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
No comments:
Post a Comment