how to disable query extender for particular button in asp.net 4.0
<p>I displayed the table using grid view , datasource as LINQ datasource and filtered those using Query extender. I have two buttons in my page i am getting filter even if click any button. I want to set filter for one button.<br/></p>

<pre><code>&lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;
            Filter Results by Name: &lt;asp:TextBox ID="txtName" runat="server" &gt;&lt;/asp:TextBox&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            Range Value : &lt;asp:TextBox ID="txtMin" Columns="5" runat="server" &gt;&lt;/asp:TextBox&gt; 
            &lt;asp:TextBox Columns="5" ID="txtMax" runat="server" &gt;&lt;/asp:TextBox&gt; 
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            Property Value : &lt;asp:TextBox runat="server" ID="txtProperty" Columns="3"&gt;&lt;/asp:TextBox&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;asp:LinqDataSource ID="lnsStudentRecord" runat="server" 
                ContextTypeName="BAO.StudentRecordDBDataContext" EntityTypeName="" 
                TableName="StudentDetails"&gt;
            &lt;/asp:LinqDataSource&gt;
            &lt;asp:QueryExtender ID="qeStudentRecordSearch" TargetControlID="lnsStudentRecord" runat="server"&gt;
                &lt;asp:SearchExpression SearchType="StartsWith" DataFields="Name" &gt;
                    &lt;asp:ControlParameter ControlID="txtName"/&gt;
                &lt;/asp:SearchExpression&gt;
                &lt;asp:RangeExpression DataField="Total" MaxType="Inclusive" MinType="Inclusive"&gt;
                    &lt;asp:ControlParameter ControlID="txtMin"/&gt;
                    &lt;asp:ControlParameter ControlID="txtMax" /&gt;
                &lt;/asp:RangeExpression&gt;
                &lt;asp:PropertyExpression&gt;
                    &lt;asp:ControlParameter ControlID="txtProperty" Name="Total"/&gt;
                &lt;/asp:PropertyExpression&gt;
            &lt;/asp:QueryExtender&gt;
            &lt;asp:Button ID="btnFilter" runat="server" Text="Filter" /&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;asp:GridView ID="gvStudentRecord" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="RegNo" DataSourceID="lnsStudentRecord"&gt;
                &lt;Columns&gt;
                    &lt;asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /&gt;
                    &lt;asp:BoundField DataField="RegNo" HeaderText="RegNo" ReadOnly="True" 
                        SortExpression="RegNo" /&gt;
                    &lt;asp:BoundField DataField="Tamil" HeaderText="Tamil" SortExpression="Tamil" /&gt;
                    &lt;asp:BoundField DataField="English" HeaderText="English" 
                        SortExpression="English" /&gt;
                    &lt;asp:BoundField DataField="Total" HeaderText="Total" SortExpression="Total" /&gt;
                &lt;/Columns&gt;
            &lt;/asp:GridView&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
