IE 9,datagrid,TabContainer等很多问题

时间:2013-09-20 20:41:49

标签: c# asp.net internet-explorer iis-7 datagrid

我在使用IE 9时遇到了一些问题,所以第一个是DataGrid Button列没有触发,而且在Chrome中工作正常,那么TabContainer根本就没有显示,而且在Chrome中也是如此,它可能是什么?< / p>

<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>

TabContainer:

<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>

1 个答案:

答案 0 :(得分:0)

解决了,对于安全性而言,这是一个问题所有javascript都被禁用,因此事件没有被触发。