0

I have migrated my .net projet from framework 3.5 to 4.5 and my the site was previously running under IE7. I need to run it under IE11 now. I have a page which upon selecting an element in a dropdown display the values of the element selected. The element has 3 different fields: Code, name and info et a button delete which upon clicking delete the element and empty the fields. Below is the code which does the reset:

        protected void LB_Supprimer_Click(object sender, System.EventArgs e)
    {
            if ( this.DBDelete_TRF() ) 
                {
                    this.TB_NOM.Text = "" ;
                    this.TB_CODE.Text = "" ;
                    this.TB_ACTCORR.Text = "" ;
                }           
        MngMessage.refresh();
    }

Code in aspx:

    <TABLE id="Table1" borderColor="lightgrey" cellSpacing="5" cellPadding="0" width="100%"
                                        border="0">
                                        <TR>
                                            <TD style="WIDTH: 168px; HEIGHT: 19px" align="right">
                                                <asp:Label id="Lbl_code" runat="server" CssClass="label" DESIGNTIMEDRAGDROP="47">Code : </asp:Label></TD>
                                            <TD style="WIDTH: 403px; HEIGHT: 19px">
                                                <asp:TextBox id="TB_CODE" runat="server" Width="96px" CssClass="txt" DESIGNTIMEDRAGDROP="73"
                                                    ToolTip="Code" Font-Bold="True" ontextchanged="TB_CODE_TextChanged"></asp:TextBox>&nbsp;
                                            </TD>
                                        </TR>
                                        <TR>
                                            <TD style="WIDTH: 168px; HEIGHT: 68px" align="right">
                                                <asp:Label id="Label_Nom" runat="server" CssClass="label" DESIGNTIMEDRAGDROP="86">Nom : </asp:Label></TD>
                                            <TD style="WIDTH: 403px; HEIGHT: 68px">
                                                <asp:TextBox id="TB_NOM" runat="server" Height="54px" Width="360px" CssClass="txt" DESIGNTIMEDRAGDROP="85"
                                                    Font-Bold="True" TextMode="MultiLine" Rows="4"></asp:TextBox></TD>
                                        </TR>
                                        <TR>
                                            <TD style="WIDTH: 168px" align="right"></TD>
                                            <TD style="WIDTH: 403px">
                                                <asp:Label id="LB_INFO" runat="server" CssClass="label">Info</asp:Label></TD>
                                        </TR>
                                        <TR>
                                            <TD style="WIDTH: 168px" align="right">
                                                <asp:Label id="Label8" runat="server" CssClass="label" DESIGNTIMEDRAGDROP="49">Action : </asp:Label>
                                                <asp:CheckBox id="chk_Confirmee" runat="server" CssClass="DBLabel" ToolTip="xxx yyy"
                                                    Text="Confirmée"></asp:CheckBox></TD>
                                            <TD style="WIDTH: 403px">
                                                <asp:TextBox id="TB_ACTCORR" runat="server" Height="74px" Width="360px" CssClass="txt" TextMode="MultiLine"
                                                    Rows="5"></asp:TextBox></TD>
                                        </TR>

                                        <TR>
                                            <TD align="center" height="15"><cc1:linkbutton id="LB_Supprimer" runat="server" DisableText="Traitement en cours" DisableAfterClick="True" onclick="LB_Supprimer_Click">Supprimer</cc1:linkbutton></TD>
                                        </TR>
                                    </TABLE>

The above does not work in IE11 only but in chrome it does. Any idea how to solve this pls?

refresh
  • 1,319
  • 2
  • 20
  • 71
  • ... Are you creating your page layout by using a table? – Tyler Feb 27 '18 at 11:52
  • @Tyler: I am not sure I get your question but this is the code how it is in the project. I showed only part of the code. – refresh Feb 27 '18 at 12:00
  • `LB_Supprimer` is a UserControl and does not have an OnClick event. `LB_Supprimer_Click` will only trigger a javascript function (if there is one) but not a code behind method. What does `aspinlinkbutton` look like? Or is `onclick` a property? – VDWWD Feb 27 '18 at 12:03
  • @VDWWD : But when I click on LB_Supprimer in debug mode I can see that the fields are set to "". It hits the function LB_Supprimer_Click. – refresh Feb 27 '18 at 12:05
  • What does the User Control look like? – VDWWD Feb 27 '18 at 12:09
  • @VDWWD : I am not I understand your question. – refresh Feb 27 '18 at 12:12
  • @tabby Were you the one who coded this, or did you hire someone to build your website? – Tyler Feb 27 '18 at 12:16
  • `cc1:aspinlinkbutton` is not a standard Control like a LinkButton or a TextBox. I think it is a custom User Control and as such must have its own asxc and ascx.cs files. – VDWWD Feb 27 '18 at 12:25
  • @VDWWD : I did not code this. I am doing a migration here. And it has its aspx.cs files. The first part of the code if the aspx.cs – refresh Feb 28 '18 at 03:52
  • ... check the closing tag – Vitaly Feb 28 '18 at 04:12
  • @Vitaly : Sry, copy paste error – refresh Feb 28 '18 at 05:48

0 Answers0