Home All Groups Group Topic Archive Search About
Author
4 Apr 2006 1:40 PM
Prashant Majhwar
<atlas:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
        <-------webpartcontro------l>
</contenttemplate>
</atlas:UpdatePanel>

My webpart contains a dropdown list and linkbuttons. Dropdown list becomes
empty when i use the update panel. Any solutions to this ?

--Prashant Majhwar

Author
5 Apr 2006 4:13 PM
DWS
Prashant Majhwar

Maybe this will help.  You can instantly make a webpartzone and all of the
webparts in it asyncronous without writing any code or making changes to
individual webparts.  Check out the April 2nd blog entry.
http://spaces.msn.com/sipjbydws400/blog/

As for the dropdown make sure to set autopostback=true unless of course you
have some button or similar on the webpart to process the changes.

Good Luck
DWS

March CTP of Atlas is running webparts http://www.dws400.com check it out
for more webpart inspiration.


Show quoteHide quote
"Prashant Majhwar" wrote:

> <atlas:UpdatePanel ID="UpdatePanel1" runat="server">
> <contenttemplate>
>         <-------webpartcontro------l>
> </contenttemplate>
> </atlas:UpdatePanel>
>
> My webpart contains a dropdown list and linkbuttons. Dropdown list becomes
> empty when i use the update panel. Any solutions to this ?
>
> --Prashant Majhwar
>
>
>
Author
6 Apr 2006 4:38 AM
Prashant Majhwar
I was placing the updatepanel inside the webpartzone due to which the
webpart was crashing. The autopostback property were true in both the cases.

<asp:WebPartZone ID="WebPartZone1" runat="server" Height="68px"
Mozilla:WebPartVerbRenderMode="TitleBar">
                            <ZoneTemplate>
                                 <atlas:UpdatePanel ID="myUpdate1"
runat="server" Mode="Always">
                                     <ContentTemplate>
                                        <WPControls:ShoppingCartControlWP
ID="_ShoppingCartControlWP" runat="server" />
                                     </ContentTemplate>
                                </atlas:UpdatePanel>
                             </ZoneTemplate>
                         </asp:WebPartZone>


That's why the dropdownlist and other contents were coming empty. But now
when I wrapped the webpartzone with the updatepanel the contents are getting
loaded.

<atlas:UpdatePanel ID="myUpdate1" runat="server" Mode="Always">
                  <ContentTemplate>
                        <asp:WebPartZone ID="WebPartZone1" runat="server"
Height="68px" Mozilla:WebPartVerbRenderMode="TitleBar">
                            <ZoneTemplate>
                                 <WPControls:ShoppingCartControlWP
ID="_ShoppingCartControlWP" runat="server" />
                             </ZoneTemplate>
                         </asp:WebPartZone>
                 </ContentTemplate>
         </atlas:UpdatePanel>

but there is error that popsup now...

Assertion Failed: Duplicate use of id "WebPart__ShoppingCartControlWP" for
object of type "Sys.UI.Controls.WebParts.WebPart".




Show quoteHide quote
"DWS" <D**@discussions.microsoft.com> wrote in message
news:2D47A5B2-8A83-4E1D-BA72-239E24D6C593@microsoft.com...
> Prashant Majhwar
>
> Maybe this will help.  You can instantly make a webpartzone and all of the
> webparts in it asyncronous without writing any code or making changes to
> individual webparts.  Check out the April 2nd blog entry.
> http://spaces.msn.com/sipjbydws400/blog/
>
> As for the dropdown make sure to set autopostback=true unless of course
> you
> have some button or similar on the webpart to process the changes.
>
> Good Luck
> DWS
>
> March CTP of Atlas is running webparts http://www.dws400.com check it out
> for more webpart inspiration.
>
>
> "Prashant Majhwar" wrote:
>
>> <atlas:UpdatePanel ID="UpdatePanel1" runat="server">
>> <contenttemplate>
>>         <-------webpartcontro------l>
>> </contenttemplate>
>> </atlas:UpdatePanel>
>>
>> My webpart contains a dropdown list and linkbuttons. Dropdown list
>> becomes
>> empty when i use the update panel. Any solutions to this ?
>>
>> --Prashant Majhwar
>>
>>
>>