Firefox: Webparts and updatepanel

Last post 09-20-2006 11:26 AM by avidyarthi. 17 replies.

Sort Posts:

  • Firefox: Webparts and updatepanel

    05-16-2006, 10:18 AM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    hello guys.

    i was wondering if anyone can give any feedback on the current status (and even more important, what about the future) regarding the use of web parts with atlas.

    i've noticed that the new webpartmanager and webpartzone let's us use web parts in firefox with the same look and feel as if we're using IE. however, these classes seem to introduce some bugs when we put everything inside an update panel...

    any comments on this? thanks

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: Firefox: Webparts and updatepanel

    05-16-2006, 3:14 PM
    • Member
      25 point Member
    • toki
    • Member since 04-29-2006, 5:30 PM
    • Posts 5

    Hi ,

    The only way I have gotten Web Parts to work with Atlas is to wrap the web part zone with update panels. Then all the web parts in that web zone appear to work using partial rendering.

    Alternatively, if you are using a Master Page you can wrap all the controls within the content section of your page in an update panel. Note: I am talking about the content section of the page that uses the MasterPage not the Master Page itself.

     

    Hope this helps,

    Toki

     

  • Re: Firefox: Webparts and updatepanel

    05-16-2006, 5:51 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    hello.

    have you managed to put it working with firefox? you see, i've managed to put everything working with IE (ie, sort of - read my previous post about the bug that exists in the webpartmanager class). however, i was investigating the new webpartmanager and webpartzone controls introduces with atlas and they really work with firefox if you use a full postback; when you wrap everything in a updatepanel, you'll get assertions related with duplicate webpartmanager controls...

    hasn't anyone got this error yet?

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: Firefox: Webparts and updatepanel

    05-16-2006, 7:45 PM
    • Contributor
      4,547 point Contributor
    • mharder
    • Member since 11-22-2002, 12:03 PM
    • Redmond, WA
    • Posts 917
    • AspNetTeam
      Moderator
    1. You need to place all WebParts controls inside the UpdatePanel (WebPartManager, WebPartZones, ToolZones).
    2. You need to use the Atlas WebPartManager and WebPartZone, not the ASP.NET 2.0 WebPartManager and WebPartZone.

    -Mike
    http://blogs.msdn.com/mharder

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Firefox: Webparts and updatepanel

    05-17-2006, 2:52 AM
    • Member
      5 point Member
    • aconsolati
    • Member since 05-17-2006, 6:16 AM
    • Posts 1
    Thanks for the info Mike, but where do you find the Atlas WebPartManager and WebPartZone controls?  I could not see them in the Atlas controls toolkit.

    I was thinking you mean replacing <asp:WebPartManager /> with something like <atlas:WebPartManager /> but I'm obviously on the wrong track.

    Any help appreciated - and keep up the great work.  The framework is awesome!
  • Re: Firefox: Webparts and updatepanel

    05-17-2006, 4:10 AM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    Hello Mike.

    that's what i'm doing. in the previous posts, i mention that the new controls (webpartmanager and webpartzone) work without any problems with a full page postback (and you get the same feel as in IE). however, if I put everything inside an updatepanel and the webpartmanager is set to designmode, i get an assertion during the partial postbak that says that there are duplicate webpartmanager elements oh the page.

    i didn't had any time to dig through this...i'll try to to it today and post more info on the problem i'm facing.

    thanks.

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: Firefox: Webparts and updatepanel

    05-17-2006, 4:41 PM
    • Contributor
      4,547 point Contributor
    • mharder
    • Member since 11-22-2002, 12:03 PM
    • Redmond, WA
    • Posts 917
    • AspNetTeam
      Moderator

    See this blog post for how to use the Atlas WebPartManager and WebPartZone:

    http://davidbarkol.com/blog/archive/2006/03/22.aspx

    -Mike

    http://blogs.msdn.com/mharder

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Firefox: Webparts and updatepanel

    05-17-2006, 4:42 PM
    • Contributor
      4,547 point Contributor
    • mharder
    • Member since 11-22-2002, 12:03 PM
    • Redmond, WA
    • Posts 917
    • AspNetTeam
      Moderator

    Luis,

    The Atlas WebPartManager and WebPartZone should work inside an UpdatePanel, as long as all the WebParts controls are in a single UpdatePanel.  Make sure you are using the April CTP.  If you are seeing otherwise, please post a minimal code sample to reproduce the issue.

    -Mike

    http://blogs.msdn.com/mharder

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Firefox: Webparts and updatepanel

    05-17-2006, 6:08 PM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    Hello again Mike.

    if you take the code i've wrritten in the other post about the bug of the webpartmanager control and replace the webpartmanager and webpartzones with the ones introduced by atlas, you'll get the errors i'm mentioning here. i've tried it with 2 different machines and the errors persist in that scenario.

     

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: Firefox: Webparts and updatepanel

    05-25-2006, 7:31 PM
    • Contributor
      4,547 point Contributor
    • mharder
    • Member since 11-22-2002, 12:03 PM
    • Redmond, WA
    • Posts 917
    • AspNetTeam
      Moderator
    This doesn't repro for me using the April CTP.  I know there were bugs like this in the March CTP, but they were fixed in the April CTP.  Are you sure you are using the April CTP?

    -Mike
    http://blogs.msdn.com/mharder

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Firefox: Webparts and updatepanel

    05-26-2006, 7:32 AM
    • All-Star
      25,662 point All-Star
    • Luis Abreu
    • Member since 02-12-2005, 6:22 AM
    • Madeira [Portugal]
    • Posts 5,368
    • TrustedFriends-MVPs

    hello again.

    hum..-j'm almost sure i have that version installed. if you want, i can send you the complete study project i'm using here...

    btw, i'm using firefox 1.5.0.1

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Re: Firefox: Webparts and updatepanel

    07-24-2006, 2:59 AM
    Found this usercontrol on www.smartjungle.com which provides a WebParts control to get AJAX capabilities and complete Firefox compatibility with no extra code

    http://www.smartjungle.com

    Demos:
    http://www.smartjungle.com/Demos.aspx

  • Re: Firefox: Webparts and updatepanel

    08-01-2006, 1:16 PM
    • Member
      59 point Member
    • JCL2006
    • Member since 08-01-2006, 4:32 PM
    • Posts 23

    Hello,

    I have created a very simple application that uses WebParts and Atlas. By placing all of my controls (a WebPartManager, 2 WebPartZones, and 1 DropDownListbox within a single UpdatePanel, I managed to get everything working in IE except the Drag-and-Drop aspect of WebParts. For this,  I used David's posting of the additional code required in the web.config file to add a section called <tagMapping> that directs the application to use the Atlas version of the WebParts. As an aside, I noticed that by using the AutoPostBack feature of the dropdownlistbox, I did not require any triggers, although I have included one in the code below.

    My question though is that while my application does work in IE, the Drag-and-Drop ability of Design Mode still does not work in Mozilla FireFox. I have the June Release of Atlas, and version 1.5.0.4 of FireFox. I would appreciate any help as I am out of ideas.

    Thanks! (and here is my code below)

    JCL

    <%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>

    <%@ Register Src="WebUserControl.ascx" TagName="WebUserControl" TagPrefix="uc1" %>

    <!

    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    <

    html xmlns="http://www.w3.org/1999/xhtml">

    <

    head runat="server">

    <title>Untitled Page</title>

    </head>

    <body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');">

    <atlas:ScriptManager ID="ScriptManager1" EnablePartialRendering="True" runat="server" />

    <form id="form1" runat="server">

    <atlas:UpdatePanel ID="p1" runat="server">

    <ContentTemplate>

    <asp:WebPartManager ID="WebPartManager1" runat="server">

    </asp:WebPartManager>

    <asp:WebPartZone ID="WebPartZone1" runat="server" BackColor="#FFFF80">

    </asp:WebPartZone>

    <asp:WebPartZone ID="WebPartZone2" runat="server" BackColor="#C0FFC0">

    </asp:WebPartZone>

    <asp:CatalogZone ID="CatalogZone1" runat="server">

    <ZoneTemplate>

    <asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server">

    <WebPartsTemplate>

    <uc1:WebUserControl ID="WebUserControl1" runat="server" />

    </WebPartsTemplate>

    </asp:DeclarativeCatalogPart>

    </ZoneTemplate>

    </asp:CatalogZone>

    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">

    <asp:ListItem>Browse</asp:ListItem>

    <asp:ListItem>Catalog</asp:ListItem>

    <asp:ListItem>Design</asp:ListItem>

    </asp:DropDownList>

    </ContentTemplate>

    <Triggers>

    <atlas:ControlEventTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" />

    </Triggers>

    </atlas:UpdatePanel>

    </form>

    </body>

    </html>

  • Re: Firefox: Webparts and updatepanel

    08-01-2006, 1:32 PM
    • Member
      535 point Member
    • GQAdonis
    • Member since 02-02-2006, 7:28 PM
    • Dallas, TX
    • Posts 110
    Apparently, the July CTP of Atlas addresses some issues related to web parts and Mozilla browsers.  Perhaps, the answer resides there...
  • Re: Firefox: Webparts and updatepanel

    08-01-2006, 1:54 PM
    • Contributor
      4,547 point Contributor
    • mharder
    • Member since 11-22-2002, 12:03 PM
    • Redmond, WA
    • Posts 917
    • AspNetTeam
      Moderator
    Yes, this should be fixed in the July CTP.

    -Mike
    http://blogs.msdn.com/mharder

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 2 (18 items) 1 2 Next >