updatePanel in firefox

2 posts, 0 answers
  1. kv's rhwnd
    kv's rhwnd avatar
    18 posts
    Member since:
    Mar 2010

    Posted 31 May 2010 Link to this post

    Posted 0 minutes ago (permalink)

    Hi,
    I,m Using an updatePanel in a page of my website that with click on any label of menu bar the content of panel changes and a usercontrol load into panel, my website work correctly in IE8 but in firefox ot netscape or opera no event occured and no information shows,Can U tell me how can i fix this problem?
    this is a peace of my code:
    <asp:UpdatePanel ID="Updatepnl" runat="server" UpdateMode="Conditional">
     <ContentTemplate>
     <asp:Panel ID="MainPanel" runat="server" Width="100%" Height="996px">
     </asp:Panel>
     <asp:Button ID="btnAjax" runat="server" style="display:none;" OnClick="btnAjax_Click"/>
     <input id="hdn" type="hidden" runat="server"/>
     </ContentTemplate>
     <%-- <Triggers><asp:AsyncPostBackTrigger ControlID="btnAjax" /> </Triggers> --%>
     </asp:UpdatePanel>
    and in my CodeBehind:
    protected void btnAjax_Click(object sender, EventArgs e)
        {
            Panel ContentPanel = (Panel)Page.FindControl("MainPanel");
            string PageIndex = hdn.Value;




            if (ContentPanel != null)
            {

                switch (PageIndex)
                {

                    case "1":
                        ContentPanel.Controls.Add(Page.LoadControl("Pages/Home.ascx"));
                        break;......}}}

    Thank u my friend.
  2. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top