IE 9,datagrid,TabContainer等有很多问题

本文关键字:问题 TabContainer datagrid IE | 更新日期: 2023-09-27 18:32:22

我在使用 IE 9 时遇到了几个问题,所以第一个是 DataGrid 按钮列没有触发,并且在 Chrome 中工作正常,然后 TabContainer 根本没有显示,在 chrome 中也是如此,可能是什么?

<tr>
<td>
<asp:DataGrid ID="dgOficios2" runat="server" 
    AutoGenerateColumns="False" AllowSorting="True" 
    ondeletecommand="dgOficios2_DeleteCommand" 
    oneditcommand="dgOficios2_EditCommand" 
    OnSortCommand="dgOficios2_SortCommand"
    OnItemDataBound="dgOficios_Bound" >
            <EditItemStyle BackColor="#CCCCCC" />
            <AlternatingItemStyle BackColor="#C1D0EC" />
            <HeaderStyle BackColor="#0B63A2" ForeColor="White" />
            <Columns>
                <asp:EditCommandColumn CancelText="Cancel" EditText="Editar" UpdateText="Update" Visible="false">
                    <ItemStyle Wrap="False" />
                    <HeaderStyle Wrap="False" />
                </asp:EditCommandColumn>
                <asp:ButtonColumn CommandName="Delete" Text="Distribuir"></asp:ButtonColumn>
                <asp:BoundColumn DataField="Id" HeaderText="Id" SortExpression="Id"
                     Visible="False"></asp:BoundColumn>
                     <asp:BoundColumn DataField="TypeCCompany" HeaderText="Bloque" SortExpression="TypeCCompany" 
                     Visible="false"></asp:BoundColumn>
                     <asp:BoundColumn DataField="DocNum" HeaderText="Número  Oficio" SortExpression="DocNum"
                     Visible="true"></asp:BoundColumn>
                          <asp:BoundColumn DataField="Receiver" HeaderText="Destino" SortExpression="Receiver"
                     Visible="false"></asp:BoundColumn>
                     <asp:BoundColumn DataField="SigantureDoc" HeaderText="Firma" SortExpression="SigantureDoc"
                     Visible="false"></asp:BoundColumn>
                     <asp:BoundColumn DataField="SignaturePosition" HeaderText="Puesto" SortExpression="SignaturePosition"
                     Visible="false"></asp:BoundColumn>
                       <asp:BoundColumn DataField="Status" HeaderText="Estatus" SortExpression="Status"
                     Visible="false"></asp:BoundColumn>
                       <asp:BoundColumn DataField="Note" HeaderText="Asunto" SortExpression="Note"
                     Visible="true"></asp:BoundColumn>
                       <asp:BoundColumn DataField="Date" HeaderText="Fecha" SortExpression="Date"
                     Visible="true"></asp:BoundColumn>
                       <asp:BoundColumn DataField="ReceiverDate" HeaderText="Fecha de Recepcion" SortExpression="ReceiverDate"
                     Visible="false"></asp:BoundColumn>
                       <asp:BoundColumn DataField="ModificationDate" HeaderText="Fecha de Modificacion" SortExpression="ModificationDate"
                     Visible="false"></asp:BoundColumn>
                       <asp:BoundColumn DataField="CreationDate" HeaderText="Fecha de Creacion" SortExpression="CreationDate"
                     Visible="false"></asp:BoundColumn>
                       <asp:BoundColumn DataField="TypeCDocument" HeaderText="TypeCDocument" SortExpression="TypeCDocument"
                     Visible="false"></asp:BoundColumn>
                         <asp:BoundColumn DataField="Prior" HeaderText="Antecedentes" SortExpression="Prior"
                     Visible="false"></asp:BoundColumn>
                         <asp:BoundColumn DataField="Consecutive" HeaderText="Consecutivo" SortExpression="Consecutive"
                     Visible="false"></asp:BoundColumn>
                         <asp:BoundColumn DataField="Letter" HeaderText="Letra" SortExpression="Letter"
                     Visible="false"></asp:BoundColumn>
                         <asp:BoundColumn DataField="InputOutput" HeaderText="Entrada/Salida" SortExpression="InputOutput"
                     Visible="false"></asp:BoundColumn>
                       <asp:BoundColumn DataField="RemainderDate" HeaderText="Recordatorio" SortExpression="RemainderDate"
                     Visible="false"></asp:BoundColumn>
</Columns>
</asp:DataGrid>
</td>
</tr>

和选项卡容器:

<asp:Content ID="sist" runat="server" ContentPlaceHolderID="formas">
<cc1:TabContainer ID="tbSist" runat="server" ActiveTabIndex="1" >
<cc1:TabPanel ID="tblDestinos" runat="server">
<HeaderTemplate>Personas de Atencion</HeaderTemplate>
<ContentTemplate >
<asp:MultiView ID="mview1" runat="server" ActiveViewIndex="0">
<asp:View runat="server">
 <table>
 <tr>
 <td>
 <asp:LinkButton ID="ButtonUsuariosNew2" runat="server" OnClick="ButtonUsuariosNew_Click" Text="Agregar Nuevo"/>
</td>
</tr>

这让我发疯是在 asp.net 完成的,它在IE6和IE9的开发中都可以工作,而微软则在iis7中。cc1 是一个 AjaxControlToolkit,帮助?。谢谢

编辑:是的,我有另一个带有按钮的数据网格,只有这个可以工作。

      <asp:DataGrid ID="dgUsuarios" runat="server" 
    AutoGenerateColumns="False" AllowSorting="True" 
    ondeletecommand="dgUsuarios_DeleteCommand" 
    oneditcommand="dgUsuarios_EditCommand" 
    OnSortCommand="dgUsuarios_SortCommand"
     ShowFooter="true" OnItemCommand="doInsert" AllowPaging="true" PageSize="50"
     OnPageIndexChanged="pagechange">
            <EditItemStyle BackColor="#CCCCCC" />
            <AlternatingItemStyle BackColor="#C1D0EC" />
            <HeaderStyle BackColor="#0B63A2" ForeColor="White" />
            <Columns>
            <asp:TemplateColumn>
            <ItemTemplate>
            <asp:ImageButton ID="edit" CommandName="Edit" ImageUrl="~/img/editUser.png" Width="16px" Height="16px" runat="server" CausesValidation="false" ToolTip="Editar Usuarios" />
            </ItemTemplate>
            </asp:TemplateColumn>
                <asp:TemplateColumn>
                <ItemTemplate>
                <asp:ImageButton ID="Delete" CommandName="Delete" ToolTip="Eliminar" runat="server" ImageUrl="~/img/deleteUser.png" Height="16px" Width="16px" CausesValidation="false" />
                </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="Id" HeaderText="Id" SortExpression="Id"
                     Visible="False"></asp:BoundColumn>
                     <asp:BoundColumn DataField="Name" HeaderText="Usuario" SortExpression="Name" 
                     Visible="true"></asp:BoundColumn>
                     <asp:BoundColumn DataField="FullName" HeaderText="Nombre" SortExpression="FullName" Visible="false"
                    ></asp:BoundColumn>
                          <asp:BoundColumn DataField="Position" HeaderText="Puesto" SortExpression="Position" Visible="false"
                   ></asp:BoundColumn>
                     <asp:BoundColumn DataField="Email" HeaderText="Email" SortExpression="Email" Visible="false"
                     ></asp:BoundColumn>
                     <asp:BoundColumn DataField="TypeCDoc" HeaderText="Area" SortExpression="TypeCDoc"
                     Visible="true">                                      
                     </asp:BoundColumn>
                     <asp:BoundColumn DataField="Autorizar" HeaderText="Autoriza" SortExpression="Autorizar"
                     Visible="true">                                      
                     </asp:BoundColumn>
                     <asp:BoundColumn DataField="Distribuir" HeaderText="Distribuye" SortExpression="Distribuir"
                     Visible="true">                                      
                     </asp:BoundColumn>
                     <asp:BoundColumn DataField="Generar" HeaderText="Genera" SortExpression="Generar"
                     Visible="true">                                      
                     </asp:BoundColumn>
                     <asp:BoundColumn DataField="Escanear" HeaderText="Escanea" SortExpression="Escanear"
                     Visible="true">                                      
                     </asp:BoundColumn>
                      <asp:BoundColumn DataField="LeerTodo" HeaderText="Lee Todo" SortExpression="LeerTodo"
                     Visible="true">                                      
                     </asp:BoundColumn>
                      <asp:BoundColumn DataField="Password" HeaderText="Password" SortExpression="Password"
                     Visible="false">                                      
                     </asp:BoundColumn>
                      <asp:BoundColumn DataField="Enviar" HeaderText="Enviar" SortExpression="Enviar"
                     Visible="true">                                      
                     </asp:BoundColumn>
                     <%--<asp:TemplateColumn >--%>
                    <%-- <ItemTemplate>
                     </ItemTemplate>
                     <FooterTemplate>
                     <asp:TextBox ID="ls" runat="server"></asp:TextBox>
                     </FooterTemplate>
                     </asp:TemplateColumn>--%>
</Columns>
</asp:DataGrid>

IE 9,datagrid,TabContainer等有很多问题

解决了,这是 ie9 的安全性问题,所有 JavaScript 都被禁用了,所以事件没有触发。