<HeaderTemplate> <asp:Label ID="Label14" runat="server" Text="StatusId"></asp:Label> <br /> <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox> </HeaderTemplate>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:printapp_apr_2ConnectionString %>" SelectCommand="gridFill" FilterExpression="(fileName like '{0}%' or '{0}' ='-1') AND (fileDetails like '{1}%' or '{1}' ='-1') AND (createdOn='{2}' or '{2}'='-1') AND (statusName ='{3}' or '{3}' ='-1') " SelectCommandType="StoredProcedure"> <FilterParameters> <asp:ControlParameter Name="fileName" ControlID="TextBox6" PropertyName="Text" Type="String" DefaultValue="-1" /> <asp:ControlParameter Name="fileDetails" ControlID="TextBox7" PropertyName="Text" Type="String" DefaultValue="-1" /> <asp:ControlParameter Name="createdOn" ControlID="TextBox8" PropertyName="Text" Type="String" DefaultValue="-1" /> <asp:ControlParameter Name="statusName" ControlID="DropDownList1" PropertyName="SelectedValue" Type="String" DefaultValue="-1" /> </FilterParameters> </asp:SqlDataSource> Can able to use in HeaderTemplate in filterParameters in gridview in textbox... <pre><HeaderTemplate Name="fileName" ControlID="TextBox6" PropertyName="Text" Type="String" DefaultValue="-1" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)