Adding Webparts at runtime ?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Adding Webparts at runtime ?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Thomas H.
Guest





Posted: Mon Jan 03, 2005 3:47 pm    Post subject: Adding Webparts at runtime ? Reply with quote

Hi folks,

what is the most effective way to add new web parts at runtime.


TIA

Thomas
Back to top
Daniel Larson (www.portal
Guest





Posted: Wed Jan 05, 2005 6:41 am    Post subject: RE: Adding Webparts at runtime ? Reply with quote

(Assuming you mean from code...)

Use the SPFile object's WebPartCollection. Add the webpart to it and update
the file to commit the change.

Daniel Larson
http://www.portalbuilder.org


"Thomas H." wrote:

Quote:
Hi folks,

what is the most effective way to add new web parts at runtime.


TIA

Thomas

Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB