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/25/2007 8:43:05 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Exisn
Asp.Net User
WebPartManager, catch when a webpart is moving4/25/2007 8:43:05 PM

0/0

I'm in the process of creating a website where the pages are fetched from a database. Each page consists of several custom webparts, which I add to a zone through a custom WebPartManager (I'm using to Internals.AddWebPart to do this). I want to allow certain users to edit the layout of a page by dragging the individual elements to new places. From what I've seen in the WebPartManager I should be able to save these changes to the database by simply overriding SaveCustomPersonalizationState (To avoid saving any per user data) and one of the move events. However, I have trouble implementing this part, since I don't know which specific event/function to override. I've tried to add Traceinformation to both OnWebPartMoving and OnWebPartMoved, however nothing appears in the tracelog (The custom WebPartManager is in a precompiled dll, not in the App_Code folder). Any ideas as to how I should go on with this, or any recommendations with this kind of website in general (A site where the layout is stored in a custom database and the layout is controlled through webparts)?
bczernicki
Asp.Net User
Re: WebPartManager, catch when a webpart is moving4/27/2007 1:15:28 PM

0/0

If you have a custom WebPartManager and want to see what is going on under the hood.  Use Reflector.  It will dissasemble the assembly for you and can see all the methods etc.  Unless your working with a 3rd party vendor that is very careful, they probably did not obfuscate the code.

 http://www.aisto.com/roeder/dotnet/

 

Exisn
Asp.Net User
Re: WebPartManager, catch when a webpart is moving4/28/2007 7:44:02 PM

0/0

I do have full access to the code. Due to some problems I ran into early on in the process I changed from the app_code folder to pre compiled assemblies. The problem I'm currently facing, is to determine which function in the WebPartManager class (From MicroSoft) I need to overload in order to be able to catch when a webpart has moved, and act accordingly (Get the new position and update the database accordingly).
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005

Web:
Dynamically loading webparts I can't load user controls via the webpart manager and I can't add user controls to my own webpart classes. ... catch end try next 'you can do this already if your creating on the fly. 'but here goes. ... Java platforms moving to .NET? ...
Nested web part zones? - ASP.NET Forums OnPreRender(e); } catch (Exception) {} } protected override void OnInit( EventArgs e) { try { base. ... The actual prevention of moving unsupported web parts is handled by a custom WebPartManager which is shown below. ...
CoDe Magazine - Article: ASP.NET 2.0 Web Part Infrastructure and ... And when I say SharePoint 2007, I am using this as a catch all phrase to refer to both ... WebPartManager, which is the ASP.NET 2.0 WebPartManager. ..... His talks tend to get very highly charged, fast moving, and highly interactive. ...
SharePoint Shelter » Blog Archive » SharePoint Developer Interview ... NET 2.0 WebPart base class. When inheriting from the SharePoint WebPart Base class ... The WebPartManager sealed class is responsible for managing everything occurring ... when you are working with moving a WebPart from WebPartZone to WebPartZone. ..... Whoops, good catch. My grammer sucks! Coskun Cavusoglu Says: ...
CodeProject: C# Discussion Boards. Free source code and ... If you are in BrowseDisplayMode the you cannot move the webparts. ... I alreday have mentioned that I can do other things with web parts except moving now! ... then you should put the webpartmanager inside the update panel. otherwise it .... catch (Exception ee) { ErrorMsg = ee.Message; } } public bool ifExists() ...
MarkItUp Now we can wire up the Moving event and write the code that will ensure only 1 web part of a ..... catch { }. context.RewritePath(originalPath); }. Dialog Editor Zone ..... WebPart webPart = webPartManager.WebParts[ID]; webPartManager. ...
blog.ekegren Moving from one farm to another isn't an easy task as well. .... needed in order to make bridge from SharePoint webpart framework ... When placing both webcontrols on a ASPNET2.0 page using the webpart-manager and webpart zone framework, .... catch (System.Net.WebException err) { Console.WriteLine("Warning :" + err. ...
What I Think About... Change the reference to the Web Part Manager from “cc1:WebPartManager” to ..... basic components in place before moving on to other, more advanced, topics. ..... To fix this I've just put a try-catch around the setting of the version ...
Dr.NETjes Moving, adding and removing of WebParts is all done without a single visual postback; the WebParts just ..... //return an instance of the requested WebPart return WebPartManager. .... catch {} finally { if (impersonationContext != null) ...
MarkItUp WebPart webPart = webPartManager.WebParts[ID]; webPartManager. .... I've really wanted to give MSNSearch a chance but it's a catch-22 because I won't trust ...




Search This Site:










how to change the default breadcrumb image?

how do i delete the footer???

forms authentication timeout problem

read text in a msword document

raised event problem

problem with integrated authentication - iis6 - win2k3

copy web site problem

call function from .aspx page

impliment masterpage

moduleevents question

missing /mobilemodules/links.ascx

impersonation and sql triggers

getting information from a web page

simple question about page reloading

display under a different url

problem with installing msde 2000

role of toolbar.htc

trouble with arraylist and gridview

problem with faq module

design tabs

update application option in windows installer

an io error has occurred writing to the exception log. help!!!

"preview" mode affects all administrators

profile table

to solicit about export data from sql to file .doc?

why doesn't this function work

cannot apply skin to custom (inherited) gridview control !!!

how to remove a verb for a web part?

create activex control with .net

application error

 
All Times Are GMT