CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 4/7/2005 3:40:39 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 40 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
kevindente
Asp.Net User
WebParts, personalizable properties, and child controls4/7/2005 3:40:39 AM

0/0

If I have a WebPart with personalizable properties, and the WebPart has child controls with properties flagged as personalizable, will the child control properties be persisted? I'm playing around with this kind of scenario, and haven't been having much luck getting it working.

Conceptually it's similar to what the GenericWebPart does, but it looks like the framework has special support for the GenericWebPart. Is it possible to get this working in the general case?

Fredrik N
Asp.Net User
Re: WebParts, personalizable properties, and child controls4/7/2005 6:24:32 AM

0/0

The properties in your child controls in your WebPart, will not be persisted, only the WebPart's property will be persisted if they have the Personalizable attribute.

The WebPart Framework has special support for the GenericWebPart. When the WebPart is recognize as a GenereicWebPart. The WebPart personalization feature will get the ChildControl from the GenericWebPart (the child control in this case is the user control or server control act as a WebPart) and check if the control has any properties attributed with the Personalizable attribute.

 


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
mharder
Asp.Net User
Re: WebParts, personalizable properties, and child controls4/25/2005 6:06:51 PM

0/0

There is no general-purpose support for this in the framework.  Your WebPart could implement the IPersonalizable interface to save and load the personalizable data for the child controls. However, you would need to either hard-code the child control properties to be stored, or else you would need to write some custom code to find the properties with the PersonalizableAttribute on the child controls.

http://blogs.msdn.com/mharder

This posting is provided "AS IS" with no warranties, and confers no rights.
kevindente
Asp.Net User
Re: WebParts, personalizable properties, and child controls4/26/2005 12:28:47 AM

0/0

Thanks, that's pretty much the conclusion I came to myself. Too bad, it makes it tougher to build composite web parts out of sub-controls. Maybe I'll write a web part base class that discovers and persists personalizable controls from children one of these days. ;)
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Microsoft Sharepoint: Building Office 2007 Solutions in VB 2005 Authors: Scot P. Hillier, Pages: 519, Published: 2007
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
The Rational Guide to Building SharePoint Web Parts: Building SharePoint Web Parts Authors: Darrin Bishop, Pages: 175, Published: 2004
Pro Sharepoint 2007 Development Techniques Authors: Margriet Bruggeman, Nikander Bruggeman, Pages: 484, Published: 2007
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005

Web:
WebParts, personalizable properties, and child controls - ASP.NET ... If I have a WebPart with personalizable properties, and the WebPart has child controls with properties flagged as personalizable, ...
ASP.NET 2.0: Personalize Your Portal with User Controls and Custom ... Personalize Your Portal with User Controls and Custom Web Parts ..... Saving the Web Part properties and layout for a particular page and user. ...
GenericWebPart Class (System.Web.UI.WebControls.WebParts) If your control defines any of its properties as personalizable (by using the ... So, you can declare WebPart class properties on these controls. ...
Building WebParts with NetAdvantage ASP.NET Controls: A ... NET controls into the world of SharePoint WebParts pages. Composite WebParts, which are typically simple shells which host child WebControls, ...
Enterprise .NET Community: Making SharePoint Web Parts Interact Being browsable and personalizable, the property also shows up in the standard editing box of the Web Part. (See the figure below.) ...
Calling into SharePoint Web Service using AJAX-Enabled Web Parts ... Inside the web part class, I have defined two personalizable properties. ... You ’ll notice that I used HTML controls instead of web server controls. ...
Building Server Controls For ASP.NET “Whidbey” (Part 1) Associated designer ensures child controls are created at design-time as well ..... Mark the control as Personalizable; Mark properties as Personalizable ...
Portals with WebPart Pages Catch events of child controls: After the loading phase has been completed, ..... you created a custom WebPart with a personalizable property called ...
Building my own UserControl WebPart part V - Mike's Blog This method will create the child controls for the editor part. ... The UserControl property will be stored, so the next time the WebPart is rendered it ...
InformIT: Personalization with Profiles and Web Parts in ASP.NET ... This property is marked with two attributes. The Personalizable attribute ..... Add XML control to the Web part's collection // of child controls Controls. ...




Search This Site:










dnn 2.0 feature list

aggregate page and www confusion

fckeditor problem

virtual child portals

treeview help!!

please help..........

display all pages in nav except the homepage

prefix on dll files

help modifying registration page.

custom modules and skin css

usint .net dll (client side) in an asp page

microsoft sql web data administrator

arrgghh! please help with setup problem

formsauthentication_onauthenticate event not working in global.asax

error in dnn 321 crashing server

macromedia dreamweaver mx and dnn

masterpage, multiview and ajax!

capturing events from dynamically created button control

security exception when installing new modules.

to top of page button...

problem with treeview: crashing ie

i have started rebuilding gcn if anybody is interested...

dnn 4.0 blog module?

post preview

problem to modify portalcfg.xml file

email integrated with forum?

problem with shared ssl on hosting site

why won't this work?!

menu - how do i remove a menuitem in menuitemdatabound event?

drop-downs don't populate in bonosoft multi page

 
All Times Are GMT