Solved

SharePoint 2010 Master Page - Can I Place a SilverLight WebPart on the A4.Master Page?

Posted on 2011-03-25
7
771 Views
Last Modified: 2012-05-11
I've created a SilverLight WebPart that I was hoping have displayed on every page of the site on the left side of the page.  I was thinking that I could use the site's Master Page to do this.  After a bit of reading it appears that this is not possible.  Is this true or is there a work around?
Thanks in advance for your help!
Terry
0
Comment
Question by:wahlster
  • 4
  • 2
7 Comments
 
LVL 9

Expert Comment

by:Justin Imes
ID: 35220806
do you mean V4.master?

I have placed certain silverlight snippets inside v4 master pages

you need to place a control div and if you are using javascript.

<div id="SilverLightTopPanel"><script type="text/javascript"></script></div>

try that, see if it helps
0
 
LVL 5

Expert Comment

by:navdeepmadan
ID: 35220987
Webpart will only get added in the wepart zone. You can create user control
0
 

Author Comment

by:wahlster
ID: 35224886
Thanks for the replies.  Yes, I am thinking that I would modify the V4.Master page.  I have created a SilverLight user control and have been able to place it onto a SharePoint site page but I would like to place in the A4.master page.  While reading on how to modify the master page of a site the book I am reading states the following below.  The books comment leads me to believe that I can't use my control.  Have you be successful in placing a SilverLight user control onto a master page?  I'm hoping yes and that I am just minunderstanding things.

From Book:
Master Pages... also contain most of the content and functionality of normal
pages, including JavaScript , Web Parts (including Data Views and XLV Web Parts), and
components such as the Search box and the Site Actions button. Master pages cannot
contain Web Part zones, however.

Thanks again,
Terry
0
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.

 

Author Comment

by:wahlster
ID: 35225023
This is what I tried...  Thoughts?
 Master Page Insertion of Web Part Zone Error
0
 

Assisted Solution

by:wahlster
wahlster earned 0 total points
ID: 35225568
Okay, I was able to figure out how to accomplish this (I think).  This is what I did.
I used this link as a reference:
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/6d307b5f-9267-422a-a9b3-baf99b522211/

1) I place the following while editing in code view:
   <div>THIS IS WHERE THE PART NEEDS TO GO </div>.
2) Saved the page.
3) Then highlight the area (I highlight the text in design view) where I want to place the webpart and did the following:   Insert-->Web Part (From Web Parts Section)-->Media and Content-->Silvelight Web Part.
4) Then in the properties I specified in the URL the location of the xap file (I had deployed this to my site earlier)

It's late so I need to think about this tomorrow but it seems to work.

I'm curious if you guys have any comments on this or further suggestions.  Again thanks for your input.
Terry
0
 
LVL 5

Accepted Solution

by:
navdeepmadan earned 500 total points
ID: 35226564
you can add you user control directly out of your web part zone.
if you have created your control as a webpart, then add it in the web part zone.
If you have ceated a user control then you can place it any where in the master page.
0
 

Author Closing Comment

by:wahlster
ID: 35321783
After some research I was able to find a way to accomplish the task.  My comment provides a description of what I did so it contributed to the solutions.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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