Solved

Sharepoint 2010 Silverlight Webpart

Posted on 2010-11-19
1
626 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now