i am refering this link
http://www.aspsnippets.com/Articles/Bootstrap-Tabs-Maintain-Selected-Active-Tab-on-PostBack-in-ASPNet.aspx
its not working for me.
<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="BankDetails_.aspx.cs" Inherits="BankDetails_" %>
<%@ Register TagPrefix="cc1" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style>
.form-horizontal .control-label {
padding-top: 7px;
margin-bottom: 0;
text-align: left;
}
</style>
<style type="text/css">
.nav-tabs a, .nav-tabs a:hover, .nav-tabs a:focus
{
outline: 0;
}
</style>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="panel panel-info" id="EstbApprovalPanel" runat="server">
<div class="panel-heading">Bank Details</div>
<div class="panel-body">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#Supplier" aria-controls="Supplier" role="tab" data-toggle="tab">Supplier</a></li>
<li role="presentation"><a href="#Customer" aria-controls="Customer" role="tab" data-toggle="tab"><i class="fa fa-group"></i> Customer</a></li>
</ul>
<!-- Tab panes -->
<asp:UpdatePanel ID="updatePanel1" runat="server">
<ContentTemplate>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="Supplier">
<br />
<div class="form-horizontal">
<div class="form-group">
<asp:Label ID="lblSupplier" runat="server" Text="Suppliers Name" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:DropDownList ID="drpSupplier" runat="server" CssClass="form-control input-sm" ValidationGroup="First" AutoPostBack="false"></asp:DropDownList>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RfvName" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="drpSupplier" InitialValue="0" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblBankName" runat="server" Text="Bank Name" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtBank" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="200" data-toggle="tooltip" data-placement="bottom" title="Enter Bank Name" Placeholder="Bank Name" ValidationGroup="First"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtBank" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblState" runat="server" Text="State" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:DropDownList ID="drpState" runat="server" CssClass="form-control input-sm" ValidationGroup="First"></asp:DropDownList>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="drpState" InitialValue="0" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblCity" runat="server" Text="City" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtCity" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="50" data-toggle="tooltip" data-placement="bottom" title="Enter City" Placeholder="City" ValidationGroup="First">
</asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtCity" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblAddress" runat="server" Text="Bank Address" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtAddress" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="200" data-toggle="tooltip" data-placement="bottom" title="Enter Branch Address" Placeholder="Branch Address" ValidationGroup="First"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtAddress" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="Label2" runat="server" Text="Contact" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-phone"></i></span>
<asp:TextBox ID="txtContact" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="10" data-toggle="tooltip" data-placement="bottom" title="Enter Contact Number" Placeholder="Contact Number" ValidationGroup="First"></asp:TextBox>
</div>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtContact" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblBranch" runat="server" Text="Branch" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtBranch" runat="server" CssClass="form-control input-sm" ValidationGroup="First" Style="text-transform: uppercase" data-toggle="tooltip" data-placement="bottom" title="Enter Branch Name" Placeholder="Branch Name" MaxLength="100"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtBranch" ValidationGroup="First" SetFocusOnError="true" ></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblBranchCode" runat="server" Text="Branch Code" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtBranchCode" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="9" data-toggle="tooltip" data-placement="bottom" title="Enter Branch Code" Placeholder="Branch Code" ValidationGroup="First"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtBranchCode" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblIfsc" runat="server" Text="IFSC Code" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtIfsc" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="11" data-toggle="tooltip" data-placement="bottom" title="Enter IFSC Code" Placeholder="IFSC Code" ValidationGroup="First"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Ifsc should be like As. XXXX0999999" ForeColor="Red" ControlToValidate="txtIfsc" ValidationExpression="[A-Z|a-z]{4}[0][\d]{6}$"></asp:RegularExpressionValidator>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtIfsc" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblMicr" runat="server" Text="MICR Code" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtMicr" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="9" data-toggle="tooltip" data-placement="bottom" title="Enter MICR Code" Placeholder="MICR Code" ValidationGroup="First"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="MICR Code Should be of 9 Numeric Digit" ForeColor="Red" ControlToValidate="txtMicr" ValidationExpression="[0-9]{9}"></asp:RegularExpressionValidator>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtMicr" ValidationGroup="First"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-3 col-md-offset-3 col-lg-2 col-md-2" id="DivBtnSave" runat="server">
<asp:LinkButton ID="btnSave" runat="server" CssClass="btn btn-success btn-block" OnClick="btnSave_Click1" enableEventValidation="false" ValidationGroup="First"><span class="glyphicon glyphicon-save"></span> Save</asp:LinkButton>
</div>
<div class="col-lg-offset-3 col-lg-2 col-md-2" id="DivBtnUpdate" runat="server">
<asp:LinkButton ID="btnUpdate" runat="server" CssClass="btn btn-danger btn-block" OnClick="btnUpdate_Click" ValidationGroup="First"><span class="glyphicon glyphicon-pencil"></span> Update</asp:LinkButton>
</div>
<div class=" col-lg-2 col-md-2">
<asp:LinkButton ID="btnClear" runat="server" CssClass="btn btn-default btn-block" OnClick="btnClear_Click"><span class="glyphicon glyphicon-repeat"></span> Reset</asp:LinkButton>
</div>
</div>
</div>
<br />
<asp:TextBox ID="txthfSupplierID" runat="server" Visible="false"></asp:TextBox>
<asp:HiddenField ID="hfSupplierID" runat="server" Value="0" />
<asp:HiddenField ID="TabName" runat="server" />
<div class="well well-lg">
<div class="table-responsive">
<asp:GridView ID="grdBankDetails" DataKeyNames="ID" RowStyle-HorizontalAlign="Center" runat="server" CssClass=" table table-bordered table-condensed table-hover" HeaderStyle-CssClass="bg-info"
ShowHeader="true" Font-Size="Small"
HeaderStyle-Height="30px"
RowStyle-Height="15px"
AutoGenerateColumns="False"
EmptyDataText="There are no data records to display." OnSelectedIndexChanged="grdBankDetails_SelectedIndexChanged" OnPageIndexChanging="grdBankDetails_PageIndexChanging" AllowPaging="True" OnRowDataBound="grdBankDetails_RowDataBound" PageSize="5">
<Columns>
<asp:TemplateField HeaderText="Sr.No" ItemStyle-HorizontalAlign="Center" ControlStyle-Width="5%">
<ItemTemplate>
<asp:Label ID="lblRowNum" runat="server" Text='<%#Container.DataItemIndex+1 %>'></asp:Label>
</ItemTemplate>
<ItemStyle Width="5%" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Edit" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="btnGridEdit" runat="server" CausesValidation="false" CssClass="btn btn-primary btn-xs" OnClick="btnGridEdit_Click" CommandArgument='<%# Eval("ID") %>'>
<span aria-hidden="true" class="glyphicon glyphicon-pencil"></span> Edit
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="true" Visible="true" />
<asp:BoundField DataField="SupplierFirmName" HeaderText="FirmName" ReadOnly="true" />
<asp:BoundField DataField="BankName" HeaderText="Bank Name" />
<asp:BoundField DataField="BranchName" HeaderText="Branch Name" />
<asp:BoundField DataField="Contact" HeaderText="Contact" />
<asp:BoundField DataField="BranchCode" HeaderText="BranchCode" ReadOnly="true" Visible="false" />
<asp:BoundField DataField="IFSCCode" HeaderText="IFSCCode" ReadOnly="true" />
<asp:BoundField DataField="MICRCode" HeaderText="MICRCode" ReadOnly="true" />
<asp:BoundField DataField="Address" HeaderText="Address" />
<asp:BoundField DataField="City" HeaderText="City" />
<asp:BoundField DataField="StateName" HeaderText="State" />
<asp:TemplateField HeaderText="Delete" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="btnGridDelete" runat="server" CausesValidation="false" CssClass="btn btn-danger btn-xs" OnClick="btnGridDelete_Click" CommandArgument='<%# Eval("ID") %>'>
<span aria-hidden="true" class="glyphicon glyphicon-trash"></span> Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle HorizontalAlign="Center" />
<PagerSettings Mode="NumericFirstLast" PageButtonCount="6"
FirstPageText="First" LastPageText="Last" />
</asp:GridView>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="Customer">
<br />
<div class="form-horizontal">
<div class="form-group">
<asp:Label ID="lblCustomer" runat="server" Text="Customers Name" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:DropDownList ID="drpCustomer" runat="server" CssClass="form-control input-sm" ValidationGroup="Second"></asp:DropDownList>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="drpCustomer" InitialValue="0" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblBankCust" runat="server" Text="Bank Name" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtBankCust" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="200" data-toggle="tooltip" data-placement="bottom" title="Enter Bank Name" Placeholder="Bank Name" ValidationGroup="Second"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtBankCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblStateCust" runat="server" Text="State" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:DropDownList ID="drpStateCust" runat="server" CssClass="form-control input-sm" ValidationGroup="Second"></asp:DropDownList>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="drpStateCust" InitialValue="0" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblCityCust" runat="server" Text="City" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtCityCust" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="50" data-toggle="tooltip" data-placement="bottom" title="Enter City" Placeholder="City" ValidationGroup="Second"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtCityCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblBankAddrCust" runat="server" Text="Bank Address" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtBankAddrCust" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="200" data-toggle="tooltip" data-placement="bottom" title="Enter Branch Address" Placeholder="Branch Address" ValidationGroup="Second"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtBankAddrCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblContactCust" runat="server" Text="Contact" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-phone"></i></span>
<asp:TextBox ID="txtContactCust" runat="server" CssClass="form-control input-sm" Style="text-transform: uppercase" MaxLength="10" data-toggle="tooltip" data-placement="bottom" title="Enter Contact Number" Placeholder="Contact Number" ValidationGroup="Second"></asp:TextBox>
</div>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtContactCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblBranchCust" runat="server" Text="Branch" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtBranchCust" runat="server" CssClass="form-control input-sm" ValidationGroup="Second" Style="text-transform: uppercase" data-toggle="tooltip" data-placement="bottom" title="Enter Branch Name" Placeholder="Branch Name" MaxLength="100"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtBranchCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblBranchCodeCust" runat="server" Text="Branch Code" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtBranchCodeCust" runat="server" CssClass="form-control input-sm" ValidationGroup="Second" Style="text-transform: uppercase" MaxLength="9" data-toggle="tooltip" data-placement="bottom" title="Enter Branch Code" Placeholder="Branch Code"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtBranchCodeCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<asp:Label ID="lblIfscCust" runat="server" Text="IFSC Code" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtIfscCust" runat="server" CssClass="form-control input-sm" ValidationGroup="Second" Style="text-transform: uppercase" MaxLength="11" data-toggle="tooltip" data-placement="bottom" title="Enter IFSC Code" Placeholder="IFSC Code"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtIfscCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
<asp:Label ID="lblMicrCust" runat="server" Text="MICR Code" CssClass="control-label col-lg-2 col-md-2"></asp:Label>
<div class="col-lg-3 col-md-3">
<asp:TextBox ID="txtMicrCust" runat="server" CssClass="form-control input-sm" ValidationGroup="Second" Style="text-transform: uppercase" MaxLength="9" data-toggle="tooltip" data-placement="bottom" title="Enter MICR Code" Placeholder="MICR Code"></asp:TextBox>
</div>
<div class="col-lg-1 col-md-1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ErrorMessage="!Required" ForeColor="Red" ControlToValidate="txtMicrCust" ValidationGroup="Second"></asp:RequiredFieldValidator>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-3 col-md-offset-3 col-lg-2 col-md-2" id="DivBtnCustSave" runat="server">
<asp:LinkButton ID="btnCustSave" runat="server" CssClass="btn btn-success btn-block" ValidationGroup="Second" OnClick="btnCustSave_Click"><span class="glyphicon glyphicon-save" ></span> Save</asp:LinkButton>
</div>
<div class="col-lg-offset-3 col-lg-2 col-md-2" id="DivBtnCustUpdate" runat="server">
<asp:LinkButton ID="btnCustUpdate" runat="server" CssClass="btn btn-danger btn-block" ValidationGroup="Second" OnClick="btnCustUpdate_Click"><span class="glyphicon glyphicon-pencil"></span> Update</asp:LinkButton>
</div>
<div class=" col-lg-2 col-md-2">
<asp:LinkButton ID="btnCustClear" runat="server" CssClass="btn btn-default btn-block" OnClick="btnCustClear_Click"><span class="glyphicon glyphicon-repeat"></span> Reset</asp:LinkButton>
</div>
</div>
</div>
<br />
<asp:TextBox ID="txthfCustomerID" runat="server" Visible="false"></asp:TextBox>
<asp:HiddenField ID="hfCustomerID" runat="server" Value="0" />
<div class="well well-lg">
<div class="table-responsive">
<asp:GridView ID="grdCustomerBankDetails" DataKeyNames="ID" RowStyle-HorizontalAlign="Center" runat="server" CssClass=" table table-bordered table-condensed table-hover" HeaderStyle-CssClass="bg-info"
ShowHeader="true" Font-Size="Small"
HeaderStyle-Height="30px"
RowStyle-Height="15px"
AutoGenerateColumns="False"
EmptyDataText="There are no data records to display." OnSelectedIndexChanged="grdCustomerBankDetails_SelectedIndexChanged" OnPageIndexChanging="grdCustomerBankDetails_PageIndexChanging" AllowPaging="True" OnRowDataBound="grdCustomerBankDetails_RowDataBound" PageSize="5">
<Columns>
<asp:TemplateField HeaderText="Sr.No" ItemStyle-HorizontalAlign="Center" ControlStyle-Width="5%">
<ItemTemplate>
<asp:Label ID="lblCustomerRowNum" runat="server" Text='<%#Container.DataItemIndex+1 %>'></asp:Label>
</ItemTemplate>
<ItemStyle Width="5%" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Edit" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="btnCustomerGridEdit" runat="server" CausesValidation="false" CssClass="btn btn-primary btn-xs" OnClick="btnCustomerGridEdit_Click" CommandArgument='<%# Eval("ID") %>'>
<span aria-hidden="true" class="glyphicon glyphicon-pencil"></span> Edit
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="true" Visible="true" />
<asp:BoundField DataField="CustomerFirmName" HeaderText="FirmName" ReadOnly="true" />
<asp:BoundField DataField="BankName" HeaderText="Bank Name" />
<asp:BoundField DataField="BranchName" HeaderText="Branch Name" />
<asp:BoundField DataField="Contact" HeaderText="Contact" />
<asp:BoundField DataField="BranchCode" HeaderText="BranchCode" ReadOnly="true" Visible="false" />
<asp:BoundField DataField="IFSCCode" HeaderText="IFSCCode" ReadOnly="true" />
<asp:BoundField DataField="MICRCode" HeaderText="MICRCode" ReadOnly="true" />
<asp:BoundField DataField="Address" HeaderText="Address" />
<asp:BoundField DataField="City" HeaderText="City" />
<asp:BoundField DataField="StateName" HeaderText="State" />
<asp:TemplateField HeaderText="Delete" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="btnCustomerGridDelete" runat="server" CausesValidation="false" CssClass="btn btn-danger btn-xs" OnClick="btnCustomerGridDelete_Click" CommandArgument='<%# Eval("ID") %>'>
<span aria-hidden="true" class="glyphicon glyphicon-trash"></span> Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle HorizontalAlign="Center" />
<PagerSettings Mode="NumericFirstLast" PageButtonCount="6"
FirstPageText="First" LastPageText="Last" />
</asp:GridView>
</div>
</div>
</div>
<%-- <br />--%>
<%--<asp:Label ID="lblMsg" runat="server" Visible=""></asp:Label>--%>
<div class="table-responsive">
</div>
<%--<div class="well well-lg">
<div class="table-responsive">
<asp:GridView ID="grdBankDetails" DataKeyNames="ID" RowStyle-HorizontalAlign="Center" runat="server" CssClass=" table table-bordered table-condensed table-hover" HeaderStyle-CssClass="bg-info"
ShowHeader="true" Font-Size="Small"
HeaderStyle-Height="30px"
RowStyle-Height="15px"
AutoGenerateColumns="False"
EmptyDataText="There are no data records to display." OnSelectedIndexChanged="grdBankDetails_SelectedIndexChanged" OnPageIndexChanging="grdBankDetails_PageIndexChanging" AllowPaging="True" OnRowDataBound="grdBankDetails_RowDataBound" PageSize="5">
<Columns>
<asp:TemplateField HeaderText="Sr.No" ItemStyle-HorizontalAlign="Center" ControlStyle-Width="5%">
<ItemTemplate>
<asp:Label ID="lblRowNum" runat="server" Text='<%#Container.DataItemIndex+1 %>'></asp:Label>
</ItemTemplate>
<ItemStyle Width="5%" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Edit" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="btnGridEdit" runat="server" CausesValidation="false" CssClass="btn btn-primary btn-xs" OnClick="btnGridEdit_Click" CommandArgument='<%# Eval("ID") %>'>
<span aria-hidden="true" class="glyphicon glyphicon-pencil"></span> Edit
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="true" />
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:BoundField DataField="Address" HeaderText="Address" />
<asp:BoundField DataField="Contact" HeaderText="Password" />
<asp:BoundField DataField="BranchCode" HeaderText="RoleType" ReadOnly="true" Visible="false" />
<asp:BoundField DataField="IFSCCode" HeaderText="Role" ReadOnly="true" />
<asp:BoundField DataField="MICRCode" HeaderText="Status" ReadOnly="true" />
<asp:BoundField DataField="Supplier" HeaderText="User Created Date" ReadOnly="true" />
<asp:BoundField DataField="Customer" HeaderText="Customer" ReadOnly="true" />
<asp:TemplateField HeaderText="Delete" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="btnGridDelete" runat="server" CausesValidation="false" CssClass="btn btn-danger btn-xs" OnClick="btnGridDelete_Click" CommandArgument='<%# Eval("ID") %>'>
<span aria-hidden="true" class="glyphicon glyphicon-trash"></span> Delete</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle HorizontalAlign="Center" />
<PagerSettings Mode="NumericFirstLast" PageButtonCount="6"
FirstPageText="First" LastPageText="Last" />
</asp:GridView>
</div>
</div>--%>
</div>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnSave" />
<asp:PostBackTrigger ControlID="btnUpdate" />
<asp:PostBackTrigger ControlID="btnCustSave" />
<asp:PostBackTrigger ControlID="btnCustUpdate" />
</Triggers>
</asp:UpdatePanel>
</div>
</div>
</div>
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:LinkButton ID="lnkFakeAlert" runat="server"></asp:LinkButton>
<cc1:ModalPopupExtender ID="mpeMessageAlert" runat="server" PopupControlID="pnlMessageAlert"
TargetControlID="lnkFakeAlert" BehaviorID="mpeMessageAlert" CancelControlID="btnCloseAlert"
BackgroundCssClass="modalBackground">
</cc1:ModalPopupExtender>
<asp:Panel ID="pnlMessageAlert" runat="server" Style="display: none;">
<div class="alert alert-success" role="alert">
<asp:LinkButton ID="btnCloseAlert" runat="server" CssClass="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></asp:LinkButton>
<span class=" glyphicon glyphicon-ok"></span> <strong>Alert!</strong>
<asp:Label ID="lblPopMsg" runat="server" Text=""></asp:Label>
</div>
</asp:Panel>
<script type="text/javascript">
$(function () {
var tabName = $("[id*=TabName]").val() != "" ? $("[id*=TabName]").val() : "Supplier";
$('#Tabs a[href="#' + tabName + '"]').tab('show');
$("#Tabs a").click(function () {
$("[id*=TabName]").val($(this).attr("href").replace("#", ""));
});
});
</script>
</asp:Content>
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class BankDetails_ : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["InventoryDB"].ConnectionString);
string Selected_SupplierId = string.Empty;
string Selected_CustomerId = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bind_drpSupplierName();
Bind_drpCustomerName();
Bind_drpSupplierState();
Bind_drpCustomerState();
BindGridSupplierDetails();
BindGridCustomerDetails();
DivBtnSave.Visible = true;
DivBtnUpdate.Visible = false;
DivBtnCustSave.Visible = true;
DivBtnCustUpdate.Visible = false;
drpSupplier.Focus();
}
if (this.IsPostBack)
{
TabName.Value = Request.Form[TabName.UniqueID];
}
}
#region Methods
protected void Bind_drpSupplierName()
{
SqlCommand cmd = new SqlCommand("select * from MstSupplier", con);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
drpSupplier.DataSource = ds;
drpSupplier.DataTextField = "FirmName";
drpSupplier.DataValueField = "ID";
drpSupplier.DataBind();
drpSupplier.Items.Insert(0, new ListItem("--Select Supplier--", "0"));
}
protected void Bind_drpSupplierState()
{
SqlCommand cmd = new SqlCommand("select * from MstState", con);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
drpState.DataSource = ds;
drpState.DataTextField = "Name";
drpState.DataValueField = "ID";
drpState.DataBind();
drpState.Items.Insert(0, new ListItem("--Select State--", "0"));
}
protected void Bind_drpCustomerName()
{
SqlCommand cmd = new SqlCommand("select * from MstCustomer", con);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
drpCustomer.DataSource = ds;
drpCustomer.DataTextField = "FirmName";
drpCustomer.DataValueField = "ID";
drpCustomer.DataBind();
drpCustomer.Items.Insert(0, new ListItem("--Select Customer--", "0"));
}
protected void Bind_drpCustomerState()
{
SqlCommand cmd = new SqlCommand("select * from MstState", con);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
drpStateCust.DataSource = ds;
drpStateCust.DataTextField = "Name";
drpStateCust.DataValueField = "ID";
drpStateCust.DataBind();
drpStateCust.Items.Insert(0, new ListItem("--Select State--", "0"));
}
public void AddSupplierDetails()
{
try
{
con.Open();
SqlCommand cmdInsert = new SqlCommand("insert into MstBankDetails(Name,BranchName,BranchCode,Address,City,State,IFSCCode,MICRCode,Contact,Supplier)values('" + txtBank.Text + "','" + txtBranch.Text + "','" + txtBranchCode.Text + "','" + txtAddress.Text + "','" + txtCity.Text + "','" + drpState.SelectedValue + "','" + txtIfsc.Text + "','" + txtMicr.Text + "','" + txtContact.Text + "','" + drpSupplier.SelectedValue + "')", con);
cmdInsert.ExecuteNonQuery();
lblPopMsg.Text = "Record Saved Successfully....!!!";
mpeMessageAlert.Show();
con.Close();
//lblMsg.Visible = true;
//lblMsg.Text = "Record Saved Sucessfully !!!";
BindGridSupplierDetails();
Clear();
}
catch (Exception)
{
throw;
}
}
public void UpdateSupplierDetails()
{
try
{
Selected_SupplierId = txthfSupplierID.Text;
con.Open();
SqlCommand cmdUpdate = new SqlCommand("Update MstBankDetails set Name='" + txtBank.Text + "',BranchName='" + txtBranch.Text + "',BranchCode='" + txtBranchCode.Text + "',Address='" + txtAddress.Text + "',City='" + txtCity.Text + "',State=" + drpState.SelectedValue + ",IFSCCode='" + txtIfsc.Text + "',MICRCode='" + txtMicr.Text + "',Contact='" + txtContact.Text + "',Supplier='" + drpSupplier.SelectedValue + "' where Id='" + Selected_SupplierId + "'", con);
cmdUpdate.ExecuteNonQuery();
lblPopMsg.Text = "Record Saved Successfully....!!!";
mpeMessageAlert.Show();
//lblMsg.Visible = true;
//lblMsg.Text = "Record Update Sucessfully !!!";
con.Close();
BindGridSupplierDetails();
Clear();
DivBtnSave.Visible = true;
DivBtnUpdate.Visible = false;
}
catch (Exception)
{
throw;
}
}
public void DeleteSupplierDetails()
{
try
{
Selected_SupplierId = txthfSupplierID.Text;
con.Open();
SqlCommand cmdDelete = new SqlCommand("delete from MstBankDetails where Id='" + Selected_SupplierId + "'", con);
cmdDelete.ExecuteNonQuery();
lblPopMsg.Text = "Record Deleted Sucessfully !!!";
mpeMessageAlert.Show();
con.Close();
BindGridSupplierDetails();
}
catch (Exception)
{
throw;
}
}
public void AddCustomerDetails()
{
try
{
con.Open();
SqlCommand cmdInsert = new SqlCommand("insert into MstBankDetails(Name,BranchName,BranchCode,Address,City,State,IFSCCode,MICRCode,Contact,Customer)values('" + txtBankCust.Text + "','" + txtBranchCust.Text + "','" + txtBranchCodeCust.Text + "','" + txtBankAddrCust.Text + "','" + txtCityCust.Text + "','" + drpStateCust.SelectedValue + "','" + txtIfscCust.Text + "','" + txtMicrCust.Text + "','" + txtContactCust.Text + "','" + drpCustomer.SelectedValue + "')", con);
cmdInsert.ExecuteNonQuery();
lblPopMsg.Text = "Record Saved Successfully....!!!";
mpeMessageAlert.Show();
con.Close();
Clear();
}
catch (Exception)
{
throw;
}
}
public void UpdateCustomerDetails()
{
try
{
Selected_CustomerId = txthfCustomerID.Text;
con.Open();
SqlCommand cmdUpdate = new SqlCommand("Update MstBankDetails set Name='" + txtBankCust.Text + "',BranchName='" + txtBranchCust.Text + "',BranchCode='" + txtBranchCodeCust.Text + "',Address='" + txtBankAddrCust.Text + "',City='" + txtCityCust.Text + "',State='" + drpStateCust.SelectedValue + "',IFSCCode='" + txtIfscCust.Text + "',MICRCode='" + txtMicrCust.Text + "',Contact='" + txtContactCust.Text + "',Customer='" + drpCustomer.SelectedValue + "' where Id='" + Selected_CustomerId + "'", con);
cmdUpdate.ExecuteNonQuery();
lblPopMsg.Text = "Record Saved Successfully....!!!";
mpeMessageAlert.Show();
//lblMsg.Visible = true;
//lblMsg.Text = "Record Update Sucessfully !!!";
con.Close();
BindGridCustomerDetails();
Clear();
}
catch (Exception)
{
throw;
}
}
public void DeleteCustomerDetails()
{
try
{
Selected_CustomerId = txthfCustomerID.Text;
con.Open();
SqlCommand cmdDelete = new SqlCommand("delete from MstBankDetails where Id='" + Selected_CustomerId + "'", con);
cmdDelete.ExecuteNonQuery();
lblPopMsg.Text = "Record Deleted Sucessfully ....!!!";
mpeMessageAlert.Show();
//lblMsg.Text = "Record Deleted Sucessfully !!!";
con.Close();
BindGridCustomerDetails();
}
catch (Exception)
{
throw;
}
}
public void BindGridSupplierDetails()
{
try
{
DataTable dt = new DataTable();
DataSet ds = new DataSet();
con.Open();
//SqlCommand cmdSelect = new SqlCommand("select sb.ID,sb.Name as BankName,sb.BranchName,sb.BranchCode,sb.Address,sb.City,sb.State,sb.IFSCCode,sb.MICRCode,sb.Contact,sb.Supplier,s.FirmName as FirmName from MstBankDetails sb inner join MstSupplier s on sb.Supplier=s.ID order by sb.ID desc ", con);
SqlCommand cmdSelect = new SqlCommand("select bk.ID,bk.Name as BankName,bk.BranchName,bk.BranchCode,bk.Address,bk.City,bk.State,bk.IFSCCode,bk.MICRCode,bk.Contact,bk.Supplier,s.FirmName as SupplierFirmName,st.Name as StateName from MstBankDetails bk inner join MstSupplier s on bk.Supplier=s.ID inner join MstState st on bk.State=st.ID order by bk.ID desc ", con);
SqlDataAdapter da = new SqlDataAdapter(cmdSelect);
da.Fill(dt);
grdBankDetails.DataSource = dt;
grdBankDetails.DataBind();
con.Close();
}
catch (Exception ex)
{
//lblpmsg.Text = "Exception" + ex.ToString();
//ModalPopupExtender1.Show();
//throw;
}
}
public void BindGridCustomerDetails()
{
try
{
DataTable dt = new DataTable();
DataSet ds = new DataSet();
con.Open();
SqlCommand cmdSelect = new SqlCommand("select bk.ID,bk.Name as BankName,bk.BranchName,bk.BranchCode,bk.Address,bk.City,bk.State,bk.IFSCCode,bk.MICRCode,bk.Contact,c.FirmName as CustomerFirmName,st.Name as StateName from MstBankDetails bk inner join MstCustomer c on bk.Customer=c.ID inner join MstState st on st.ID=bk.State order by bk.ID desc ", con);
SqlDataAdapter da = new SqlDataAdapter(cmdSelect);
da.Fill(dt);
grdCustomerBankDetails.DataSource = dt;
grdCustomerBankDetails.DataBind();
con.Close();
}
catch (Exception ex)
{
//lblpmsg.Text = "Exception" + ex.ToString();
//ModalPopupExtender1.Show();
//throw;
}
}
public void Clear()
{
txtAddress.Text = "";
txtBank.Text = "";
txtBranch.Text = "";
txtBranchCode.Text = "";
txtCity.Text = "";
txtContact.Text = "";
txtIfsc.Text = "";
txtMicr.Text = "";
drpState.SelectedValue = "0";
drpSupplier.SelectedValue = "0";
DivBtnSave.Visible = true;
DivBtnUpdate.Visible = false;
txthfSupplierID.Text = "";
}
public void ClearCust()
{
txtBankAddrCust.Text = "";
txtBankCust.Text = "";
txtBranchCodeCust.Text = "";
txtBranchCust.Text = "";
txtCityCust.Text = "";
txtContactCust.Text = "";
txtIfscCust.Text = "";
txtMicrCust.Text = "";
drpStateCust.SelectedValue = "0";
drpCustomer.SelectedValue = "0";
DivBtnCustSave.Visible = true;
DivBtnCustUpdate.Visible = false;
txthfCustomerID.Text = "";
}
#endregion
protected void BindDrpSupplier()
{
SqlCommand cmd = new SqlCommand("select * from MstSupplier", con);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
drpSupplier.DataSource = ds;
drpSupplier.DataTextField = "FirmName";
drpSupplier.DataValueField = "ID";
drpSupplier.DataBind();
drpSupplier.Items.Insert(0, new ListItem("--Select Supplier--", "0"));
}
protected void BindDrpCustomer()
{
SqlCommand cmd = new SqlCommand("select * from MstCustomer", con);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
da.Fill(ds);
drpCustomer.DataSource = ds;
drpCustomer.DataTextField = "FirmName";
drpCustomer.DataValueField = "ID";
drpCustomer.DataBind();
drpCustomer.Items.Insert(0, new ListItem("--Select Customer--", "0"));
}
public void Selected_SupplierRecord()
{
con.Open();
SqlCommand cmdSelect_SupplierBankDetails = new SqlCommand("select bk.ID,bk.Name as BankName,bk.BranchCode as BankBranchCode,bk.Address as BankAddress,bk.IFSCCode as BankIfscCode,bk.MICRCode as BankMicrCode,bk.Contact as BankContact,bk.Supplier,sp.FirmName as SupplierFirmName,bk.State,bk.City as City,st.Name as BankState,bk.BranchName as BankBranchName from MstBankDetails bk inner join MstSupplier sp on bk.Supplier=sp.ID inner join MstState st on bk.State=st.ID where bk.ID=" + Selected_SupplierId + "", con);
SqlDataReader dr_SupplierBankDetails = cmdSelect_SupplierBankDetails.ExecuteReader();
if (dr_SupplierBankDetails.Read())
{
txtBank.Text = dr_SupplierBankDetails["BankName"].ToString();
txtBranchCode.Text = dr_SupplierBankDetails["BankBranchCode"].ToString();
txtAddress.Text = dr_SupplierBankDetails["BankAddress"].ToString();
txtIfsc.Text = dr_SupplierBankDetails["BankIfscCode"].ToString();
txtMicr.Text = dr_SupplierBankDetails["BankMicrCode"].ToString();
txtContact.Text = dr_SupplierBankDetails["BankContact"].ToString();
txtCity.Text = dr_SupplierBankDetails["City"].ToString();
drpSupplier.SelectedValue = dr_SupplierBankDetails["Supplier"].ToString();
drpState.SelectedValue = dr_SupplierBankDetails["State"].ToString();
txtBranch.Text = dr_SupplierBankDetails["BankBranchName"].ToString();
}
dr_SupplierBankDetails.Close();
con.Close();
}
public void Selected_CustomerRecord()
{
con.Open();
SqlCommand cmdSelect_CustomerBankDetails = new SqlCommand("select bk.ID,bk.Name as BankName,bk.BranchCode as BankBranchCode,bk.Address as BankAddress,bk.IFSCCode as BankIfscCode,bk.MICRCode as BankMicrCode,bk.Contact as BankContact,bk.Customer,c.FirmName as CustomerFirmName,bk.State,bk.City as City,st.Name as BankState,bk.BranchName as BankBranchName from MstBankDetails bk inner join MstCustomer c on bk.Customer=c.ID inner join MstState st on bk.State=st.ID where bk.ID=" + Selected_CustomerId + "", con);
SqlDataReader dr_CustomerBankDetails = cmdSelect_CustomerBankDetails.ExecuteReader();
if (dr_CustomerBankDetails.Read())
{
txtBankCust.Text = dr_CustomerBankDetails["BankName"].ToString();
txtBranchCodeCust.Text = dr_CustomerBankDetails["BankBranchCode"].ToString();
txtBankAddrCust.Text = dr_CustomerBankDetails["BankAddress"].ToString();
txtIfscCust.Text = dr_CustomerBankDetails["BankIfscCode"].ToString();
txtMicrCust.Text = dr_CustomerBankDetails["BankMicrCode"].ToString();
txtContactCust.Text = dr_CustomerBankDetails["BankContact"].ToString();
txtCityCust.Text = dr_CustomerBankDetails["City"].ToString();
drpCustomer.SelectedValue = dr_CustomerBankDetails["Customer"].ToString();
drpStateCust.SelectedValue = dr_CustomerBankDetails["State"].ToString();
txtBranchCust.Text = dr_CustomerBankDetails["BankBranchName"].ToString();
}
dr_CustomerBankDetails.Close();
con.Close();
}
protected void btnGridEdit_Click(object sender, EventArgs e)
{
txthfSupplierID.Text = (sender as LinkButton).CommandArgument;
//hfSupplierID.Value = (sender as LinkButton).CommandArgument;
//txthfBankDetailsID.Text = (hfSupplierID.Value).ToString();
Selected_SupplierId = txthfSupplierID.Text;
Selected_SupplierRecord();
DivBtnSave.Visible = false;
DivBtnUpdate.Visible = true;
}
protected void btnGridDelete_Click(object sender, EventArgs e)
{
txthfSupplierID.Text = (sender as LinkButton).CommandArgument;
DeleteSupplierDetails();
Clear();
}
protected void grdBankDetails_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void grdBankDetails_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdBankDetails.PageIndex = e.NewPageIndex;
//BindGridView();
}
protected void grdBankDetails_RowDataBound(object sender, GridViewRowEventArgs e)
{
}
protected void btnSave_Click1(object sender, EventArgs e)
{
AddSupplierDetails();
}
protected void btnUpdate_Click(object sender, EventArgs e)
{
UpdateSupplierDetails();
}
protected void btnClear_Click(object sender, EventArgs e)
{
Clear();
}
protected void btnCustomerGridEdit_Click(object sender, EventArgs e)
{
txthfCustomerID.Text = (sender as LinkButton).CommandArgument;
Selected_CustomerId = txthfCustomerID.Text;
Selected_CustomerRecord();
DivBtnCustSave.Visible = false;
DivBtnCustUpdate.Visible = true;
}
protected void btnCustomerGridDelete_Click(object sender, EventArgs e)
{
txthfCustomerID.Text = (sender as LinkButton).CommandArgument;
DeleteCustomerDetails();
}
protected void grdCustomerBankDetails_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void grdCustomerBankDetails_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdCustomerBankDetails.PageIndex = e.NewPageIndex;
//BindGridView();
}
protected void grdCustomerBankDetails_RowDataBound(object sender, GridViewRowEventArgs e)
{
}
protected void btnCustSave_Click(object sender, EventArgs e)
{
AddCustomerDetails();
}
protected void btnCustUpdate_Click(object sender, EventArgs e)
{
UpdateCustomerDetails();
}
protected void btnCustClear_Click(object sender, EventArgs e)
{
ClearCust();
}
}