i am not gettingwhy my grid view is not refreshing on closing of modal pop up extender
<asp:GridView ID="EmpsuppSalGridView" runat="server" AutoGenerateColumns="False"
CellPadding="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
BorderWidth="1px">
<columns> <asp:BoundField DataField="EMP_CODE" HeaderText="Employee Code" />
<asp:BoundField DataField="EMPNAME" HeaderText="Employee Name" />
<asp:BoundField DataField="DESIGNATION" HeaderText="Designation" />
<asp:BoundField DataField="MMONTH" HeaderText="Month-Year" />
<asp:BoundField DataField="MDAYS" HeaderText="Month Days" >
<itemstyle horizontalalign="Right">
<asp:BoundField DataField="ATTEND" HeaderText="Attendance" >
<itemstyle horizontalalign="Right">
<asp:BoundField DataField="SUPDAYS" HeaderText="Supplementary " >
<itemstyle horizontalalign="Right">
<asp:TemplateField HeaderText="Add Salary" InsertVisible="False"
ShowHeader="False">
<itemtemplate>
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False"
ImageUrl="~/images/add_button.png" Text="ADD" onclick="
ImageButton1_click" />
<itemstyle horizontalalign="Center">
<footerstyle backcolor="White" forecolor="#000066">
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White"
Font-Size="9" />
<pagerstyle backcolor="White" forecolor="#000066" horizontalalign="Left">
<rowstyle forecolor="#000066">
<sortedascendingcellstyle backcolor="#F1F1F1">
<sortedascendingheaderstyle backcolor="#007DBB">
<sorteddescendingcellstyle backcolor="#CAC9C9">
<sorteddescendingheaderstyle backcolor="#00547E">
on ImageButton1_click modalpopup is displaying
<asp:Panel ID="mdlSupSalary" runat="server" CssClass="panel" Visible="true"
Width="99%" BorderStyle="Solid" BorderWidth="1px"
BorderColor="Black" Height="95%" > <%--style = "display:none"--%>
Emp Code
| :<asp:Label ID="lblEmpCode" runat="server" Font-Bold="False" Font-Size="8pt">
| Name
| :<asp:Label ID="lblName" runat="server" Font-Bold="False" Font-Size="8pt">
| Mon-Year
| :<asp:Label ID="lblMonYear" runat="server" Font-Bold="False" Font-Size="8pt">
| Remarks | <asp:TextBox ID="txtRemarks" runat="server" MaxLength="100" Width="250px">
| <asp:ImageButton ID="btnSupCancel" runat="server"
ImageUrl="~/images/supclose2.png" Width="20px" />
| | | | | | | | | |
|
|
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="3" Height="500px">
<asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
<HeaderTemplate >
Entitlement
</HeaderTemplate>
<contenttemplate>
<asp:Panel ID="Panel2" runat="server" CssClass="panel" BorderStyle="Solid" BorderWidth="1px"
>
Pay Commission |
<asp:TextBox ID="txtPayCommission" runat="server" ReadOnly="True" Width="70px">
| Stop Pay | <asp:TextBox ID="txtStopPay" runat="server" AutoPostBack="True"
CssClass="validate[required] " MaxLength="5"
onkeypress="return numeralsOnly(event);" ReadOnly="True" Width="50px">
| Increment Due | <asp:TextBox ID="txtIncrementDue" runat="server" ReadOnly="True" Width="50px">
| Stop Increment | <asp:TextBox ID="txtStopIncrement" runat="server" ReadOnly="True" Width="50px">
| DA Admissible
| <asp:TextBox ID="txtDAAdmissible" runat="server" ReadOnly="True" Width="70px">
| DP Admissible
| <asp:TextBox ID="txtDPAdmissible" runat="server" ReadOnly="True" Width="50px">
| GIS | <asp:TextBox ID="txtGIS" runat="server" ReadOnly="True" Width="50px">
| NPA | <asp:TextBox ID="txtNPA" runat="server" ReadOnly="True" Width="50px">
| Basic Pay
| <asp:TextBox ID="txtbasic" runat="server" AutoPostBack="True" MaxLength="6"
onkeypress="return numeralsOnly(event);" Width="70px">
| Grade Pay
| <asp:TextBox ID="txtgrade" runat="server" AutoPostBack="True" MaxLength="5"
onkeypress="return numeralsOnly(event);" Width="50px">
| Special Pay
| <asp:TextBox ID="txtspecial" runat="server" AutoPostBack="True" MaxLength="5"
onkeypress="return numeralsOnly(event);" Width="50px">
| Personal Pay
| <asp:TextBox ID="txtpersonal" runat="server" AutoPostBack="True" MaxLength="5"
onkeypress="return numeralsOnly(event);" Width="50px">
|
<asp:Panel ID="Panel6" runat="server" CssClass="panel" BorderStyle="Solid"
BorderWidth="1px">
Regular Attend.
| <asp:TextBox ID="txtregularAttend" runat="server" Font-Bold="True" MaxLength="2"
Width="20px" AutoPostBack="True">
| Suspension Allocation Rate
| <asp:DropDownList ID="ddlsuspcode" runat="server" AutoPostBack="True"
>
<asp:ListItem Value="0">NA
<asp:ListItem Value="1">1/2
<asp:ListItem Value="2">2/3
<asp:ListItem Value="3">3/4
| Suspended Attend. | <asp:TextBox ID="txtSusAttend" runat="server" Font-Bold="True" MaxLength="2"
Width="20px" AutoPostBack="True">
| Total Days | <asp:TextBox ID="txtSupDays" runat="server" Font-Bold="True" MaxLength="2"
Width="20px">
| <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="Max (">
<asp:Label ID="lblMaxSupDays" runat="server" ForeColor="Red">
<asp:Label ID="Label4" runat="server" ForeColor="Red" Text=")">
|
<asp:Panel ID="Panel3" runat="server" CssClass="panel" BorderStyle="Solid"
BorderWidth="1px" >
District | <asp:DropDownList ID="cmbDistrict" runat="server" AutoPostBack="True">
| <asp:Panel ID="pnllocation" runat="server">
Location
| <asp:Button ID="btFillLocation" runat="server" Text="Fill Location"
Visible="False" />
<asp:DropDownList ID="cmbLocation" runat="server" AutoPostBack="True">
<asp:TextBox ID="txtOtherDistrict" runat="server" MaxLength="30">
|
| <asp:RadioButtonList ID="rblBorderHillAllowance" runat="server"
RepeatDirection="Horizontal" Enabled="False">
<asp:ListItem>None
<asp:ListItem>Border Allowance
<asp:ListItem>Hill Allowance
|
<asp:Panel runat="server" CssClass ="panel" BorderStyle="Solid" BorderWidth="1px"
>
HRA | <asp:RadioButtonList ID="rblHRA" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| | GPF | <asp:RadioButtonList ID="rblGPF" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| <asp:Panel ID="pnlGPF" runat="server">
GPF Amount | <asp:TextBox ID="txtGPF" runat="server" MaxLength="5" Width="50px">
|
| Health Smart Status | <asp:RadioButtonList ID="rblhealthcard" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| <asp:Panel ID="panelHealth" runat="server" Visible="False">
Health Smart Card No
<asp:TextBox ID="txthealthcardno" runat="server"
MaxLength="30">
| Amount
<asp:TextBox ID="txtHealthAmount" runat="server" MaxLength="5" Width="50px">
|
| House Rent Recovery | <asp:RadioButtonList ID="rblhrr" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
|
<asp:Panel ID="panelhrr" runat="server" Visible="False">
House Type
| <asp:DropDownList ID="ddlhousetype" runat="server">
<asp:ListItem>-Select House Type-
<asp:ListItem>Type 1
<asp:ListItem>Type 2
<asp:ListItem>Type 3
<asp:ListItem>Type 4
| House No
| <asp:TextBox ID="txthouseno" runat="server" MaxLength="50">
| Amount
| <asp:TextBox ID="txthouseAmount" runat="server" MaxLength="5" Width="50px">
|
| Vehicle Recovery | <asp:RadioButtonList ID="rblvehicle" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| <asp:Panel ID="pnlVehicleRecovery" runat="server">
Vehicle Type
| <asp:DropDownList ID="ddlvehtype" runat="server">
<asp:ListItem>-Select Vehicle Type-
<asp:ListItem>Car
<asp:ListItem>Jeep
<asp:ListItem>Other
| Vehicle No
| <asp:TextBox ID="txtvehno" runat="server"
MaxLength="15">
| Amount
| <asp:TextBox ID="txtVechAmount" runat="server" MaxLength="5" Width="50px">
|
| LIC Policy | <asp:RadioButtonList ID="rbllic" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| <asp:Panel ID="panellic" runat="server" Visible="False">
Policy No
| <asp:TextBox ID="txtpolicy" runat="server"
Width="80px" MaxLength="20">
| Branch Code
| <asp:TextBox ID="txtbranch" runat="server"
MaxLength="20">
| Amount
| <asp:TextBox ID="txtlicamt" runat="server" MaxLength="5" Width="50px">
|
| PLI | <asp:RadioButtonList ID="rblpli" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| <asp:Panel ID="panelpli" runat="server" Visible="False">
PLI No
| <asp:TextBox ID="txtpli" runat="server" Width="80px" MaxLength="15">
| Post Office
| <asp:TextBox ID="txtpoffice" runat="server"
MaxLength="50">
| Amount
| <asp:TextBox ID="txtpliamt" runat="server" MaxLength="5" Width="50px">
|
| RD | <asp:RadioButtonList ID="rblrd" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| <asp:Panel ID="panelrd" runat="server" Visible="False">
RD No
| <asp:TextBox ID="txtrdNo" runat="server"
Width="80px" MaxLength="15">
| Post Office
| <asp:TextBox ID="txtRDPostOffice" runat="server"
MaxLength="50">
| Amount
| <asp:TextBox ID="txtrdamt" runat="server" MaxLength="5" Width="50px">
|
| Society Deduction | <asp:RadioButtonList ID="rblsoc" runat="server" AutoPostBack="True"
RepeatDirection="Horizontal">
<asp:ListItem Value="Y">Yes
<asp:ListItem Selected="True" Value="N">No
| <asp:Panel ID="panelsoc" runat="server" Visible="False">
Membership No
| <asp:TextBox ID="txtmemno" runat="server"
Width="80px" MaxLength="20">
| Society Name
| <asp:TextBox ID="txtsocname" runat="server"
MaxLength="50">
| Amount
| <asp:TextBox ID="txtsocamt" runat="server" MaxLength="5" Width="50px">
|
|
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Allowances">
<HeaderTemplate> Allowances
</HeaderTemplate>
<contenttemplate>
<asp:Panel ID="Panel4" runat="server" CssClass="panel">
<asp:Panel ID="pnlAllowance" runat="server" GroupingText="Allowances"
CssClass="panel" ><asp:Table
ID="tblAllowance" runat="server" CssClass="table1">
|
<asp:Button ID="btnAllowance" runat="server" Text="Save" CssClass="btn" Visible="False" />
<asp:TabPanel ID ="TabPanel3" runat ="server" HeaderText="Deductions">
<HeaderTemplate> Deductions
</HeaderTemplate>
<contenttemplate>
<asp:Panel ID="Panel5" runat="server">
<asp:Panel ID="Panel7" runat="server" CssClass ="panel"
GroupingText="Income Tax">
Income Tax
| <asp:TextBox ID="txtIncometax" runat="server" MaxLength="6">
|
| <asp:Panel ID="pnlDeduction" runat="server" CssClass="panel" GroupingText="Deduction">
<asp:Table ID="tblDeduction" runat="server" CssClass="table1" Height="80%">
|
<asp:Button ID="btDeduction" runat="server" Text="Save" CssClass="btn" />
<asp:TabPanel ID="TabPanel4" runat="server" HeaderText ="Loan">
<HeaderTemplate >Loan</HeaderTemplate>
<contenttemplate>
<asp:Panel runat="server" CssClass="panel">
<asp:GridView ID="grdLoan" runat="server" AutoGenerateColumns="False"
DataKeyNames="LOANCODE" AllowSorting="True">
<columns> <asp:TemplateField HeaderText="S.No.">
<itemtemplate>
<asp:Label ID="lblSRNO" runat="server"
Text='<%# Container.DataItemIndex+1 %>' Font-Bold="False">
<asp:BoundField DataField="ALL_DED_NAME" HeaderText="Loan" >
<HeaderStyle HorizontalAlign="Left" />
<itemstyle horizontalalign="Left">
<asp:BoundField DataField="Total" HeaderText="Loan Amount" >
<HeaderStyle HorizontalAlign="Right" Wrap="False" />
<itemstyle horizontalalign="Right">
<asp:BoundField DataField="PAID" HeaderText="Loan Paid" >
<HeaderStyle HorizontalAlign="Right" />
<itemstyle horizontalalign="Right">
<asp:BoundField DataField="InstallmentNumber" HeaderText=" Installment No.">
<HeaderStyle HorizontalAlign="Right" Wrap="False" />
<itemstyle horizontalalign="Right">
<asp:BoundField DataField="Installment" HeaderText="Installment Amt" >
<HeaderStyle HorizontalAlign="Right" Wrap="False" />
<itemstyle horizontalalign="Right">
<asp:Label ID="lblLoan" runat="server" Font-Bold="False" ForeColor="Red">
| <asp:Button ID="btnSubmit" runat="server" CssClass="btn" Text="Submit"
/>
|
|
on btnSubmit click i want to refresh my gridview