Solved

Sharepoint 2010 Silverlight Webpart

Posted on 2010-11-19
1
645 Views
Last Modified: 2012-05-10
How do you access the code in this type of webpart that is installed on a Sharepoint farm to edit it?
0
Comment
Question by:Jack_son_
1 Comment
 
LVL 3

Accepted Solution

by:
Nomoho earned 500 total points
ID: 34225115
Hello,

It is not allowed to edit Microsoft native webparts, but you can create another one or override them (if they are not sealed).

Here is the method:
- go to your webparts galery
- find the file of your webpart you are looking for (.webpart or .dwp)
- click on the button edit
- click "view xml" to download the xml declaration of the webpart
- you have here the assembly and the class name
- use reflector to make a copy of this class and edit it or inherit the class for making overrides (only if the class is not sealed)
- after you have created your new webpart class, deploy it in another .webpart or .dwp

=> Never edit Microsoft native code, just create your own by copying/overriding. It's important to prevent any problems when installing sharepoint updates.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question