asp.net - How to make a hidden gridview -


i want keep grid view hidden until , unless search button been clicked

   <td class="style2">                 <asp:textbox id="txtbkcgry" runat="server" width="233px"></asp:textbox>             </td>             <td class="style3">                 auther</td>             <td class="style4">                 <asp:textbox id="txtathr" runat="server" width="235px"></asp:textbox>             </td>             <td rowspan="2">                 <asp:button id="button1" runat="server" text="search" width="143px"                      onclick="button1_click" />             </td>         </tr>         <tr>             <td class="style1">                 book name</td>             <td class="style2">                 <asp:textbox id="txtbknm" runat="server" width="232px"></asp:textbox>             </td>             <td class="style3">                 price</td>             <td class="style4">                 <asp:textbox id="txtprs" runat="server" width="233px"></asp:textbox> 

please guide me query.

this 1

<asp:gridview id="gridview1" runat="server" visible="false" ></asp:gridview> 

in button event make visible

protected void button1_click(object sender, eventargs e)         {              gridview1.visible = true;         } 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -