Javascript OnClient Click功能仅在IE中工作

Javascript OnClient Click功能仅在IE中工作,javascript,asp.net,Javascript,Asp.net,我有这样一个场景,当单击按钮时,它应该通过调用detailview中的客户端按钮id来保存并向一些用户发送电子邮件。问题是它只在IE中有效,而在Chrome中不起作用。但是当我移除 当我点击页面上的按钮时,我正试图向一些用户发送电子邮件。我将把一个长的描述变成短的,这样我就不必把任何人搞糊涂了。单击按钮后,应该将所有数据保存在detailview中,然后向某些用户发送电子邮件。下面的代码只能在IE中正常工作,但不能在Chrome中正常工作。我不知道发生了什么事,谁能帮帮我吗。谢谢 以下是按钮的代

我有这样一个场景,当单击按钮时,它应该通过调用detailview中的客户端按钮id来保存并向一些用户发送电子邮件。问题是它只在IE中有效,而在Chrome中不起作用。但是当我移除

当我点击页面上的按钮时,我正试图向一些用户发送电子邮件。我将把一个长的描述变成短的,这样我就不必把任何人搞糊涂了。单击按钮后,应该将所有数据保存在detailview中,然后向某些用户发送电子邮件。下面的代码只能在IE中正常工作,但不能在Chrome中正常工作。我不知道发生了什么事,谁能帮帮我吗。谢谢 以下是按钮的代码:

 OnClick="btnApproval_Click" style="font-weight: 700" Height="38px" 
                    OnClientClick="document.getElementById('MainContent_DV_New_btnNew').click();" 
                    Font-Size="Large" />
这里是详细视图

<asp:DetailsView ID="DV_New" runat="server" Height="50px" Width="897px"
        AutoGenerateRows="False" CellPadding="4"
        OnItemUpdating="MyDetailview_ItemUpdating" GridLines="Horizontal" DefaultMode="Edit" 
        ForeColor="Black" BackColor="White" BorderColor="#FFFFCC" BorderStyle="None" 
           BorderWidth="1px">
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <InsertRowStyle BackColor="Silver" />
        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
        <EditRowStyle BackColor="#FFFFCC" Font-Bold="False" Font-Size="Medium" 
            ForeColor="#003366" />
        <Fields>
            <asp:TemplateField HeaderText="ID">
                <ItemTemplate>
                    <asp:Label ID="lblID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtPostID" runat="server" ReadOnly="true" Text='<%# DataBinder.Eval(Container, "DataItem.ID") %>'
                        Width="25px"></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Impact">
                <ItemTemplate>
                    <asp:Label ID="lblImpact" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Impact") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtImpact" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Impact") %>'
                        Width="400px" TextMode="MultiLine" Height="50px"  ></asp:TextBox>

                </EditItemTemplate>

            </asp:TemplateField>

            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:Button ID="btnNew" runat="server" CausesValidation="True" CommandName="Update"
                        Text="Save Changes" Font-Bold="True" BorderColor="#003366" BorderStyle="Groove"
                        Height="30px" />
                </ItemTemplate>
                <InsertItemTemplate>
                    <asp:Button ID="Button1" runat="server" CausesValidation="True" CommandName="Insert"
                        Text="Insert" />
                    &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" CommandName="Cancel"
                        Text="Cancel" />
                </InsertItemTemplate>
            </asp:TemplateField>
        </Fields>
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <RowStyle Font-Size="Large" />
    </asp:DetailsView>


Chrome控制台中是否出现错误?有什么事情发生吗?没有任何事情发生,只有页面闪烁。我在过去使用过相同的代码,它工作得很好,但这次我唯一更改的是detailiview。