I have and Update Panel with a Grid inside of it. The grid's data will depend on a what a user
inserts into a Search textbox. They will click Search and on clientside the grid slides in via
some Ajax animations i used. My issue is the I want the grid to reload with the text in the
search box as it's parameter data. How do I reload that Grid's Update Panel on click of that
button?
<font color="blue">Search:</font><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/bttnSearch.gif" Height="19" />
</p>
<div id="moveMe" style="display:">
<div style="float:right;">
<asp:LinkButton ID="lnkBtnCloseColHelp" runat="server" Text="X" OnClientClick="return false;" />
</div>
<br /><br />
<center>
<table>
<tr>
<td>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<ContentTemplate >
//Gridview and SqlDatasource goes here.
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID = "ImageButton2" EventName = "Click"/>
</Triggers>
</asp:UpdatePanel>
My Grid won't load because It needs to get that data in the textbox. Should that textbox be inside of the updatepanel also? Any Ideas on how i can get the Grid alone to reload based on the textbox's text after the search button is hit.