gridview在关闭modalpopupextender时并不令人耳目一新 [英] gridview is not refreshing on closing of modalpopupextender

查看:46
本文介绍了gridview在关闭modalpopupextender时并不令人耳目一新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有得到我的网格视图在关闭模态弹出扩展器时没有刷新



< asp:GridView ID =EmpsuppSalGridViewrunat =server 的AutoGenerateColumns = 假

CELLPADDING = 3 背景色= 白 BORDERCOLOR = #CCCCCC 边框= 无

边框宽度= 1像素 >



< columns> < ASP:绑定列数据字段= EMP_CODE 的HeaderText = 员工代码/>

将ASP:绑定列数据字段= EMPNAME 的HeaderText = 雇员姓名/>

< asp:BoundField DataField =DESIGNATIONHeaderText =Designation/>

< asp:BoundField DataField =MMONTHHeaderText =Month-Year/>

将ASP:绑定列数据字段= MDAYS 的HeaderText = 月日 >

将itemstyle horizo​​ntalalign = 右 >



将ASP:绑定列数据字段= 参加 的HeaderText = 出席 >

将itemstyle horizo​​ntalalign = 右 >



< asp:BoundField DataField =SUPDAYSHeaderText =Supplementary>

< itemstyle horizo​​ntalalign =Right>



< asp:TemplateField HeaderText =添加Sal进制 InsertVisible = 假

ShowHeader = 假 >

将ItemTemplate中>

将ASP:ImageButton的ID = ImageButton1runat =serverCausesValidation =False

ImageUrl =〜/ images / add_button.pngText =ADDonclick = ImageButton1_click /> ;



< itemstyle horizo​​ntalalign =中心>



< footerstyle backcolor =White forecolor =#000066>

< HeaderStyle BackColor =#006699Font-Bold =TrueForeColor =White

字体大小= 9/>

< pagerstyle backcolor =Whiteforecolor =#000066horizo​​ntalalign =Left>

< rowstyle forecolor =# 000066>



< sortedascendingcellstyle backcolor =#F1F1F1>

< sortedascendingheaderstyle backcolor =#007DBB>

< sorteddescendingcellstyle backcolor =#CAC9C9>

< sorteddescendingheaderstyle backcolor =# 00547E>










$ b在ImageButton1_click modalpopup上显示$ b







< asp:Panel ID =mdlSupSalaryrunat =serverCssClass =panelVisible =true

Width =99%BorderStyle =SolidBorderWidth =1px

BorderColor =Black 身高=95%> <% - style =display:none - %>







< br $>












< tr> < td align =left>:< asp:Label ID =lblNamerunat =serverFont-Bold =FalseFont-Size =8pt>

Emp代码

:< asp:Label ID =lblEmpCoderunat =server字体 - Bold =False字体大小=8pt>

 名称

周一年度

:< asp:Label ID =lblMonYearrunat =serverFont-Bold =FalseFont-Size =8pt>

备注 < asp:TextBox ID =txtRemarksrunat =serverMaxLength =100Width =250px>

< asp:ImageButton ID =btnSupCancelrunat =server

ImageUrl =〜/ images / supclose2.pngWidth =20px/>

                 


 


< asp:UpdatePanel ID =UpdatePanel1runat =server>

< contenttemplate>

< asp:TabContainer ID =TabContainer1runat =serverActiveTabIndex =3Height =500px>

< asp:TabPanel ID =TabPanel1runat =serverHeaderText =TabPanel1>

< HeaderTemplate>

权利

< / HeaderTemplate>

< contenttemplate>

< asp:Panel ID =Panel2runat =serverCssClass =panel BorderStyle =SolidBorderWidth =1px

>





支付佣金

< ; asp:TextBox ID =txtPayCommissionrunat =serverReadOnly =TrueWidth =70px>



停止支付 < asp:TextBox ID =txtStopPayrunat =serverAutoPostBack =True

CssClass =validate [required]MaxLength =5

onkeypress =return numeralOnly(event); ReadOnly =TrueWidth =50px>

增量到期 < asp:TextBox ID =txtIncrementDue runat =serverReadOnly =TrueWidth =50px>

停止增量 < asp :TextBox ID =txtStopIncrementrunat =serverReadOnly =TrueWidth =50px>

DA允许

< asp:TextBox ID =txtDAAdmissiblerunat =serverReadOnly =TrueWidth =70px>

DP允许

< asp:TextBox ID =txtDPAdmissiblerunat =serverReadOnly =True 宽度=50px>

GIS < asp:TextBox ID =txtGISrunat =server ReadOnly =TrueWidth =50px>

NPA < asp:TextBox ID =txtNPArunat =serverReadOnly =TrueWidth =50px>

基本支付

< asp:TextBox ID =txtbasicrunat =serverAutoPostBack =真MaxLength =6

onkeypress =return numeralOnly(event);宽度=70px>

等级支付

< asp:TextBox ID =txtgraderunat =serverAutoPostBack =TrueMaxLength =5

onkeypress =return numeralOnly(event);宽度=50px>

特殊支付

< asp:TextBox ID =txtspecialrunat =serverAutoPostBack =TrueMaxLength =5

onkeypress =return numeralOnly(event);宽度=50px>

个人支付

< asp:TextBox ID =txtpersonalrunat =serverAutoPostBack =TrueMaxLength =5

onkeypress =return numeralOnly(event);宽度=50px>





< asp :Panel ID =Panel6runat =serverCssClass =panelBorderStyle =Solid

BorderWidth =1px>







< td>< asp:Label ID =Label3runat =serverForeColor =RedText =Max(>

< asp:Label ID =lblMax SupDaysrunat =serverForeColor =Red>

< asp:Label ID =Label4runat =serverForeColor =RedText =)>

定期参加。

< asp:TextBox ID =txtregularAttendrunat =serverFont-Bold =TrueMaxLength =2

Width =20pxAutoPostBack =真>

暂停分配率

< asp:DropDownList ID =ddlsuspcoderunat =serverAutoPostBack =True

> ;

< asp:ListItem Value =0> NA

< asp:ListItem Value =1> 1/2

< asp:ListItem Value =2> 2/3

< asp:ListItem Value =3> 3/4



暂停参加。 < asp:TextBox ID =txtSusAttendrunat =serverFont-Bold =TrueMaxLength =2

Width =20pxAutoPostBack =True>

总天数 < asp:TextBox ID =txtSupDaysrunat =serverFont-Bold =TrueMaxLength =2

Width =20px>





< asp:Panel ID =Panel3runat =serverCssClass =panelBorderStyle =Solid

BorderWidth =1px>











< asp:DropDownList ID =cmbDistrictrunat =serverAutoPostBack =True>



< asp:Panel ID =pnllocationrunat =server>











位置

< asp:按钮ID =btFillLocationrunat =serverText =填充位置

Visible =False/>



< asp:DropDownList ID =cmbLocationrunat =serverAutoPostBack =True>





< asp:TextBox ID =txtOtherDistrictrunat =serverMaxLength =30>







< asp :RadioButtonList ID =rblBorderHillAllowancerunat =server

RepeatDirection =Horizo​​ntalEnabled =False>

< asp:ListItem>无

< asp:ListItem>边境津贴

< asp:ListItem> Hill Allowance







< asp:Panel runat =serverCssClass = panelBorderStyle =SolidBorderWidth =1px

>



< td align =left>< asp:RadioButtonList ID =rblhrrrunat =serverAutoPostBack =True

RepeatDirection =Horizo​​ntal>

< asp:ListItem Value =Y>是

< asp:ListItem Selected =TrueValue =N> No



HRA < asp:RadioButtonList ID =rblHRArunat =serverRepeatDirection =Horizo​​ntal>

< asp:ListItem Value =Y>是

< asp:ListItem Selected =TrueValue =N> No



 
GPF < asp: RadioButtonList ID =rblGPFrunat =serverAutoPostBack =True

RepeatDirection =Horizo​​ntal>

< asp:ListItem Value =Y> ;是的

< asp:ListItem Selected =TrueValue =N> No



< asp: Panel ID =pnlGPFrunat =server>



GPF金额 < asp:TextBox ID =txtGPFrunat =serverMaxLength =5Width =50px>

< asp:RadioButtonList ID = rblhealthcardrunat =serverAutoPostBack =True

RepeatDirection =水平>

< asp:ListItem值=Y>是

< asp:ListItem Selected =TrueValue =N> No



< asp:Panel ID =panelHealt hrunat =serverVisible =False>



健康智能卡否

< asp:TextBox ID =txthealthcardnorunat =server

MaxLength =30>

金额

< asp:TextBox ID =txtHealthAmountrunat =serverMaxLength =5Width =50px>





房屋租金回收

< asp:Panel ID =panelhrrrunat =serverVisible =False>





< td>< asp:DropDownList ID =ddlhousetyperunat =server>

< asp:ListItem> - 选择房屋类型 -

< asp:ListItem>类型1

< asp:ListItem>类型2

< asp:ListItem>类型3

< asp:ListItem>类型4



房屋类型

众议院否

< asp: TextBox ID =txthousenorunat =serverMaxLength =50>

金额

< asp:TextBox ID =txthouseAmountrunat =serverMaxLength =5Width =50px>





车辆恢复 < asp:RadioButtonList ID =rblvehiclerunat =serverAutoPost返回=真

RepeatDirection =水平>

< asp:ListItem值=Y>是

< ; asp:ListItem Selected =TrueValue =N> No



< asp:Panel ID =pnlVehicleRecoveryrunat =server>



车型

< asp:DropDownList ID =ddlvehtyperunat =server>

< asp:ListItem> - 选择车辆类型 -

< asp :ListItem>汽车

< asp:ListItem> Jeep

< asp:ListItem>其他



车辆号码

< asp:TextBox ID =txtvehnorunat =server

MaxLength =15>

金额

< asp:TextBox ID =txtVechAmountrunat =serverMaxLength =5Width =50px>





LIC政策 < asp:RadioButtonList ID =rbllicrunat =serverAutoPostBack =True

RepeatDirection = 水平>

< asp:ListItem值=Y>是

< asp:ListItem Selected =True值=N> ;否



< asp:Panel ID =panellicrunat =serverVisible =False >



政策号

< asp:TextBox ID = txtpolicyrunat =server

Width =80pxMaxLength =20>

分行代码

< asp:TextBox ID =txtbranchrunat =server

MaxLength =20>

金额

< asp:TextBox ID =txtlicamtrunat =serverMaxLength =5Width =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=\"serv er\" 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&g吨; 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=\"Loa n 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

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

推荐答案

i think you need to add trigger to refresh the gridview.



add the asyncpostbacktrigger into updatepanel of gridview on close button click event.

the above is very generic solution.



if you provide more details of your implementation the we can help you better.



thanks
i think you need to add trigger to refresh the gridview.

add the asyncpostbacktrigger into updatepanel of gridview on close button click event.
the above is very generic solution.

if you provide more details of your implementation the we can help you better.

thanks


这篇关于gridview在关闭modalpopupextender时并不令人耳目一新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆