i want data on buttonclick eg. if i have a CaseID =SR012004221000004, according to caseid search ,related data shows in GridView
Here is the source Code
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div class="col-md-4"><strong>Enter CaseId</strong><b style="color: red;">*</b></div> <div class="col-md-5"> <asp:TextBox ID="txtCase" runat="server" MaxLength="9" CssClass="form-control" Type="numeric"></asp:TextBox> <br /> <asp:Button ID="btnCaseid" runat="server" Text="Search" CssClass="btn btn-primary" /> </div>
<div class="table-responsive"> <asp:GridView ID="gvreceiptDetail" runat="server" AutoGenerateColumns="false" class="table table-bordered"> <Columns> </Columns> <EmptyDataTemplate> No record Found </EmptyDataTemplate> <Columns> <asp:TemplateField HeaderText="PaymentType"> <ItemTemplate> <asp:Label ID="lblpaymenttype" runat="server" Text='<%# Bind("paymenttype") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="PaymentMode"> <ItemTemplate> <asp:Label ID="lblmode" runat="server" Text='<%# Bind("modeofpay") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="PaymentAmount"> <ItemTemplate> <asp:Label ID="lblamount" runat="server" Text='<%# Bind("payamount") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="DateOfAmount"> <ItemTemplate> <asp:Label ID="ldddateamount" runat="server" Text='<%# Bind("paydate") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> </div> </asp:Content>