How to set all webs (sub sites as some call them) in a site collection, to use a common master page? $site = Get-SPSite http://portal.somewhere.com/ $sites = @(foreach ($web in $site.AllWebs) { $web | Select-Object -Property Url Write-Debug "Setting master pages in web ($($web.Url))..." $web.MasterUrl = "/_catalogs/masterpage/your_custom_page.master" $web.Update() $web.Dispose() }) | out-File -filepath "c:\masterpagesmodifiedOutput.txt" $site.Dispose() To Run It Save the above after you have customized it as pushmasterpages.ps1 (using notepad, or whatever…) Open SharePoint 2010 Management Shell (Powershell) Launch Powershell against that file (assuming it is in the root of C:), that would be: .\pushmasterpages.ps1
Scenerio: I need your help in designing tab control in asp.net .My requirement is I need a tab control in asp.net (C#) like for example goto my computer ,right click c drive and select properties.we get tabs like general,security etc....... like that i need to design one tab control(no need of any rightclick) in my web page and the database table columns should come as tabs and inseide the tab data of that particular column should come. Example:Employee master tab1:Employee name.........his name in the tab tab2:Age.............his age tab3:Address........his address Solution: You can do this using a simple div <style type="text/css"> .tabs { position: relative; height: 20px; margin: 0; ...
Comments
Post a Comment