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