更新面板在IE9及以上版本中获得回发

时间:2015-03-07 07:52:12

标签: html asp.net internet-explorer

我正在使用更新面板以避免回发,一切都在所有浏览器中正常工作,除了IE.Even localhost网站也可以正常使用IE但当我上传到我的网站并从互联网上作为网站运行时,更新面板获取post back.Is无论如何更新面板使用IE.i工作必须在modalpopup扩展器上显示.Below是我的代码..

<asp:ScriptManager ID="ScriptManager1" runat="server" EnableCdn="true"  EnablePageMethods="true" EnablePartialRendering="true" >
    </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="conditional">
                        <ContentTemplate>

    <div class="fluid">
    <div class="widget grid12">
     <div class="widget-header">
                         <div class="widget-title">
                                <i class="fa fa-pencil"></i>Search Criteria
                            </div>    </div>
                               <div class="widget-content pad20f">
                        <div class=" grid6">                              <div class="form-group">

                        <div class="col-sm-12">  <asp:TextBox ID="TxtPatientId" runat="server"    placeholder="Patient Id" ></asp:TextBox>  </div> </div> 
                             <div class="form-group ">

                        <div class="col-sm-12">  <asp:TextBox ID="TxtPPhn" runat="server" placeholder="PHN" ></asp:TextBox>  </div> </div> 
                         <div class="form-group ">

                        <div class="col-sm-12">  <asp:TextBox ID="TxtPLName" runat="server" 
                                placeholder="Last Name" ></asp:TextBox>  </div> </div> 
                        <div class="form-group ">

                        <div class="col-sm-12">  <asp:TextBox ID="TxtPFName" runat="server" 
                                placeholder="First Name" ></asp:TextBox>  </div> </div> 

                 </div><div class=" grid6">
                 <div class="form-group ">

                        <div class="col-sm-12">  <asp:TextBox ID="TxtPAName" runat="server" placeholder="Alias Name" ></asp:TextBox>  </div> </div> 
                        <div class="form-group ">

                        <div class="col-sm-12">  <asp:TextBox ID="TxtPhone" runat="server" placeholder="Home Phone" ></asp:TextBox>  </div> </div> 

                         <div class="form-group ">

                        <div class="col-sm-12">  <asp:TextBox ID="TxtPDob" runat="server" placeholder="DOB" ></asp:TextBox>  </div> </div> </div></div>
                  <div class="footer">
                          <asp:Button ID="Button4" runat="server" class="btn btn-blue pull-right" Text="Check-Ins "  />  
                            <asp:Button ID="BtnSearch" runat="server" class="btn btn-blue pull-right" 
                              Text="Search" onclick="BtnSearch_Click"  /> <asp:Button ID="Button14" runat="server" class="btn btn-blue pull-right" Text="Searching"  OnClientClick="click();"  />  
                              <asp:Button ID="Button6" runat="server" class="btn btn-blue pull-right" Text="Clear Search"  />  </div>

    </div> </div> <div class="fluid">
    </div>
    <div class="fluid">
    <div class=" grid12">
     <div class="widget-header">
                         <div class="widget-title">
                                <i class="fa fa-pencil"></i>Search Results
                            </div>    </div>
        <asp:GridView ID="GridView1" runat="server" CssClass="Grid" AlternatingRowStyle-CssClass="alt"
                      PagerStyle-CssClass="pgr"   Font-Names="Arial" 
            AllowPaging="True" Width="100%" GridLines="None" >
            <AlternatingRowStyle BackColor="#E0E0E0" />
            <columns>
                <asp:templatefield HeaderText="Select">
                    <itemtemplate>
                    <asp:RadioButton id="rdbUser" runat="server" OnClick="javascript:SelectSingleRadiobutton(this.id)" />
                       <%-- <asp:checkbox ID="cbSelect" CssClass="gridCB" runat="server"></asp:checkbox>--%>
                    </itemtemplate>
                </asp:templatefield>
                  </columns>
            <HeaderStyle BackColor="#CCCCCC" BorderColor="LightCyan" 
                ForeColor="Black" /> 
        </asp:GridView> <asp:Label ID="Label6" runat="server" Text="No Records Found" Visible="false"></asp:Label></div>

                            </div>
                             </ContentTemplate>
</asp:UpdatePanel>
 <div class="fluid">
   <div class="footer">
   <div class="btns sd-btns">   
      <asp:Button ID="Button7" runat="server" class="btn btn-blue pull-right" 
           Text="Ok" onclick="Button7_Click"  />  &nbsp;
                              <asp:Button ID="Button12" runat="server" 
           class="btn btn-blue pull-right" Text="Cancel" onclick="Button12_Click"   /> 
            </div></div>
    </div> 

0 个答案:

没有答案