I have created a webpart, now i need to add that webpart programmatically into the EditForm.aspx page. Can anyone help me on this.
- Padmaraj.
|
I have created a webpart, now i need to add that webpart programmatically into the EditForm.aspx page. Can anyone help me on this.
|
|||
|
|
|
You can create a feature and on the activation of the feature you can add the webpart to the page.
Also have a look at the following link for reference. http://www.keirgordon.com/post/Add-Web-Part-to-Page-Programmatically.aspx Hope it helps. Regards, Geetanjali |
|||||||||||
|
|
Take a look at the SPLimitedWebPartManager. Grab the SPFile object related to the EditForm.aspx page and then execute the GetLimitedWebPartManager method on the SPFile object. Use the limited web part manager to modify the web part page. |
|||
|
|