WebParts in Beta 1 / Preview CTP problems, (missing script?)

Last post 10-27-2006 12:13 AM by farmas. 6 replies.

Sort Posts:

  • WebParts in Beta 1 / Preview CTP problems, (missing script?)

    10-21-2006, 7:28 AM
    • Member
      100 point Member
    • flaxon
    • Member since 07-18-2004, 9:01 AM
    • Posts 20

    Hello,

    I am using Ajax with WebParts. I have updated to the Beta 1 / Preview version.
    Now, WebParts aren´t working anymore (no DnD). I have made all changes to the web.config including remapping the WebPartManger/WebPartZone controls to the new Preview assembly.

    Also AjaxToolkit controls are not working properbly within WebParts (e.g. the HoverMenuExtender does not vanish on the first load of the page (but after a post back!) (Yes I have them updated also).

    What I am missing after installing the CTP is a script like 'PreviewWebParts.js' (it is listed in the enum Microsoft.Web.Preview.UI.FrameworkScript.PreviewWebPartsScriptResource, but I cannot find it.)

    Can anybody help me?

    Many Thanks

    Flaxon

  • Re: WebParts in Beta 1 / Preview CTP problems, (missing script?)

    10-21-2006, 1:07 PM
    • Participant
      1,114 point Participant
    • farmas
    • Member since 08-05-2002, 12:19 PM
    • Redmond, WA
    • Posts 249
    • AspNetTeam

    Hello Flaxon,

    Unfortunately, for this Beta release placing WebParts inside an UpdatePanel is not supported. For a list of non-supported controls and the reason why they are not supported please visit: http://ajax.asp.net/docs/Overview/intro/partialpagerendering/updatepanelOverview.aspx under the section "UpdatePanel Compatible Controls" (the docs are missing the mention of WebParts, but because of the same reasons stated it is currently non-compatible). 

    However, placing an UpdatePanel inside of a webpart is supported.

     Thanks,
    Federico

     

  • Re: WebParts in Beta 1 / Preview CTP problems, (missing script?)

    10-22-2006, 4:12 AM
    • Member
      100 point Member
    • flaxon
    • Member since 07-18-2004, 9:01 AM
    • Posts 20

    Hello Frederico,
    thanks for your quick response.

    Is there any schedule when this (WebParts in an UpdatePanel) will be implemented again, or will this situation persist? This is very important for me to know, because it is a central part of my framework I am writing on.

    And, by the way: Because the FileUpload control is not listed under the unsupported list, does this mean it is working now inside of UpdatePanels ? (without that workaround, referencing another button outside the Panel)

    Thanks,
    Flaxon

  • Re: WebParts in Beta 1 / Preview CTP problems, (missing script?)

    10-23-2006, 12:32 PM
    • Participant
      1,114 point Participant
    • farmas
    • Member since 08-05-2002, 12:19 PM
    • Redmond, WA
    • Posts 249
    • AspNetTeam

    The plan is to have every asp.net control that we ship to work inside UpdatePanel by the next release of ASP.NET. However, it is still being discussed if it is possible to support WebParts (in particular) for Atlas 1.0 RTM.

     In the case of FileUpload, there is a limitation that prevents sending the file through XmlHttpRequest. So, in order for the file to get across you would need to perform a full postback. Note that you can make use of the PostBackTrigger to mark a button that is inside of UpdatePanel to do a full postback, instead of an asynchronous one:

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

    <ContentTemplate>

    <asp:FileUpload ID="FileUpload1" runat="server" />

    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Upload File" />

    </ContentTemplate>

    <Triggers>

    <asp:PostBackTrigger ControlID="Button1" />

    </Triggers>

    </asp:UpdatePanel>

    Hope it helps,
    Federico

  • Re: WebParts in Beta 1 / Preview CTP problems, (missing script?)

    10-23-2006, 12:49 PM
    • Member
      100 point Member
    • flaxon
    • Member since 07-18-2004, 9:01 AM
    • Posts 20

    Thanks for your reply.
    It helps, that is no more necessary to reference a button outside of UpdatePanel with the new PostBackTrigger because it is much clearer ...

    And from my point of view, it would be highly appreciated if the discussion comes to a positive result for the WebParts and they would make it to the RTM 1.0!! I spend a lot of time getting a good understanding of WebParts and implementing them with the Atlas CTP. Falling back for a long time until Orcas comes along would be hard ...

    Thanks,
    Flaxon

  • Re: WebParts in Beta 1 / Preview CTP problems, (missing script?)

    10-26-2006, 9:49 AM
    • Participant
      1,135 point Participant
    • delorenzodesign
    • Member since 08-24-2005, 7:29 PM
    • Nutley, NJ USA
    • Posts 240

    Has anyone managed to get this working?  I'm also getting the script reference error when I try to place WebParts inside of an Update Panel.  It worked great in the September release.

    I've tried the tagMapping, the references in the web.config, adding the ScriptReference to my ScriptManger but no luck!

     

    Michael De Lorenzo
    -------------------------------
    www.delorenzodesign.com
  • Re: WebParts in Beta 1 / Preview CTP problems, (missing script?)

    10-27-2006, 12:13 AM
    • Participant
      1,114 point Participant
    • farmas
    • Member since 08-05-2002, 12:19 PM
    • Redmond, WA
    • Posts 249
    • AspNetTeam

    As I mentioned at the beginning of this thread, placing WebParts inside of an UpdatePanel is not supported for this Beta release. You can read more about this on Eilon's post: http://forums.asp.net/thread/1440058.aspx 

    - Federico

Page 1 of 1 (7 items)