|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Atlas UpdatePanel with Webparts<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 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 > > > 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 >> >> >>
"Cannot have multiple items selected in a DropDownList" Error
How to get ListItemValue and ListItemText from a Combo using SendMessage edit attribute values of a web control just before control rendered to the page (control's Load even events inheritance checkbox bind with 0 = checked? Problems with dynamically created GridView/DetailsView Removing columns from Gridview(2.0) databinding on templatefileds dont work? Rendering a Treeview Control Problems Updating GridView when bound to datatable GridView XmlDataSource |
|||||||||||||||||||||||