2010-03-16 63 views
0

我在一個允許分頁的updatepanel內有一個gridview,並且有一個linkbutton,當單擊時顯示一個modalpopup來編輯記錄。這在IE,Firefox和Opera中工作正常,但我不會在Chrome或Safari中獲得回傳?我在頁面上的其他linkbuttons在updatepanels內,但不在正在工作正常的gridviews。我已經scowered網絡,但無法找到解決方案。我的部分代碼如下,任何人有任何想法?GridView分頁,控件無法在Google Chrome或Safari中使用?

# 

<asp:UpdatePanel ID="upReports" runat="server" UpdateMode="Conditional"> 
    #    <ContentTemplate> 
    #    <asp:HiddenField ID="hfMachID" runat="server" /> 
    #    <asp:HiddenField ID="hfNewLead" runat="server" Value="no" /> 
    #    <div class="fullWidth"> 
    #     <div class="heading"> 
    #      <h2 style="padding:10px"> 
    #       <asp:Label ID="lblResults" runat="server" /> 
    #      </h2> 
    #     </div> 
    #     
    #     <!-- Machine Leads --> 
    #     <asp:GridView ID="gvMachLeads" runat="server" Visible="false" AutoGenerateColumns="false" 
    #      GridLines="None" CssClass="mGrid" AlternatingRowStyle-CssClass="alt" AllowPaging="true" 
    #      OnPageIndexChanging="gvMachLeads_PageIndexChanging" PagerStyle-CssClass="pgr" 
    #      onrowcommand="gvMachLeads_RowCommand" PageSize="15"> 
    #      <Columns> 
    #      <asp:TemplateField HeaderText="Created" ItemStyle-HorizontalAlign="Center"> 
    #      <ItemTemplate> 
    #       <asp:Label ID="lblDate" runat="server" Text='<%# Eval("DateC") %>' 
    #        CssClass="repGridText" ToolTip='<%# "Origin: " + Eval("LeadOrigin") %>' /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      <asp:TemplateField HeaderText="Status" ItemStyle-HorizontalAlign="Center"> 
    #      <ItemTemplate> 
    #       <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("LeadStatus") %>' 
    #        CssClass="repGridText" ToolTip='<%# "Notes: " + Eval("Comments") %>' /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      <asp:TemplateField HeaderText="Customer" ItemStyle-HorizontalAlign="Left"> 
    #      <ItemTemplate> 
    #       <asp:Label ID="lblCustomer" runat="server" Text='<%# Eval("Name") %>' 
    #        CssClass="repGridText" ToolTip='<%# "Address: " + Eval("Add1") + " - " + Eval("City") + 
    #        " - " + Eval("State") + " - " + Eval("Zip") %>' /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      <asp:TemplateField HeaderText="Phone" ItemStyle-HorizontalAlign="Center"> 
    #      <ItemTemplate> 
    #       <asp:Label ID="lblPhone" runat="server" Text='<%# Eval("Phone") %>' 
    #        ToolTip='<%# "Contact: " + Eval("FirstName") + " " + Eval("LastName") %>'  
    #        CssClass="repGridText" /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      <asp:TemplateField HeaderText="Email" ItemStyle-HorizontalAlign="Center"> 
    #      <ItemTemplate> 
    #       <asp:HyperLink ID="hlEmail" runat="server" Text='<%# Eval("Email") %>' 
    #        CssClass="repGridLbtn" NavigateUrl='<%#"mailto:" + Eval("Email") %>' /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      <asp:TemplateField HeaderText="ESM" ItemStyle-HorizontalAlign="Center"> 
    #      <ItemTemplate> 
    #       <asp:Label ID="lblRsm" runat="server" Text='<%# Eval("EsmTerritory") %>' 
    #        ToolTip='<%# "Agent: " + Eval("AgentName") + ", Salesperson: " + Eval("SalesPerson") %>' 
    #        CssClass="repGridText" /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      <asp:TemplateField HeaderText="Machine" ItemStyle-HorizontalAlign="Center"> 
    #      <ItemTemplate> 
    #       <asp:LinkButton ID="lbtnMach" runat="server" Text='<%# Eval("MachModel") %>' 
    #        CssClass="repGridLbtn" CommandName="GetMachInfo" 
    #        ToolTip='<%# "Factory: " + Eval("Producer") %>' 
    #        CommandArgument=<%# Eval("MachID") + "§" + Eval("Name") + "<br />" + Eval("MachModel") %> /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      <asp:TemplateField HeaderText="Est. Sales" ItemStyle-HorizontalAlign="Center"> 
    #      <ItemTemplate> 
    #       <asp:Label ID="lblEstSales" runat="server" Text='<%#string.Format("{0:C}", Eval("EstSales"))%>' 
    #        ToolTip='<%# "Invoice Probability: " + Eval("InvProb") + "%, Chance: " + 
    #        Eval("Chance") + "%" %>' CssClass="repGridText" /> 
    #      </ItemTemplate> 
    #      </asp:TemplateField> 
    #      </Columns> 
    #     </asp:GridView> 
    #    </div> 
    #    </ContentTemplate> 
    #    </asp:UpdatePanel> 

回答

1

如果網格視圖工作正常(我的意思是可見正確)在IE,火狐和Opera,而不是在谷歌瀏覽器,然後做必要的改變到你的代碼: 在<asp:UpdateProgress>標記添加visible="false"

相關問題