.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Automatically inherit css when creating new subsites

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint


I have created a teamsite in Sharepoint 2010 with the publishing feature enabled. For this site I have created a alternative CSS, which I have attached through the GUI. Site actions, site settings, look and feel.....

When I'm creating new subsites the subsite doesn't automatically inherit this CSS from the root site. I have to through the GUI at the root site use the function reset all subsites to use the alternative CSS.

How can I automatically inherit the CSS from the root site when creating new subsites?

View Complete Post

More Related Resource Links

User access stripped automatically on subsites

Hello, I create a subsite, select  "use unique permissions", and create the accessgroups: visitors, members and owners.  I then enter som testusers in the visitors and members-groups, log on as them to make sure the testusers have the correct access-levels.  I also make sure my newly created access-groups are the only groups with access to the subsite.  20 minutes later, the testusers no longer have access to the subsite.  What kind of service running on the server would strip these rights?  When I log on with the owner-account, I can still see the testusers in the correct groups, but they no longer have access. I'm hoping for some good suggestions! Thanks, Kjersti

How do I set a "Automatically reject the document if it is rejected by any participant." if creating


I need to make my workflow in Sharepoint designer. But I want the function of "Automatically reject the document if it is rejected by any participant." so in case there are two manager approving a purchase request, the workflow stops and doesn't send a task to the next manager if the first rejects it.

Is this possible? I would also like to have "Automatically reject the document if it is changed before the workflow is completed." but I can't see how to do this either.

Automatically Set Anonymous access to subsites off with Parent on and permissions inherited

Is it possible to automatically set anonymous access to all newly created sub sites to be off when the Parent site is on and permissions are inherited? I know it is as simple as going into each site and disabling but to prevent users with forgetful minds we would like the default to be off. I have done a lot of research and do not see a solution. Any suggestions would be appreciated. Thank you.

Creating publishing approval workflow for subsites

My client is using SharePoint as a CMS for their public facing site.  I've created subsites and user groups for each department.  They would like a custom workflow for each subsite (department) so that department employees can create/alter pages and the changes will need to be approved by Dept heads and IT before actually posting to the site.  My previous experience has been in 2007 and working in Collaboration sites in an intranet environment.  This is more or less my first venture into publishing sites with SharePoint.  Can anyone tell me how I can achieve this goal?  My first thought was to create a Site Workflow, but I can only seem to create it at the Site Collection level rather then on Subsites.  Any suggestions?

How to automatically enable web part connections when creating a publishing page based on a custom p


I have created a simple custom page layout in SharePoint Designer, added a couple of web part zones, and a custom web part on each zone.

These web parts have a custom provider-consumer set of interfaces. I configured the connection between the web parts in SharePoint Designer (using Add Connection wizard), and saved the page layout.

After that, I checked in the layout and approved it in SP's web interface.

Finally, I created a Publishing Page based on my layout, but the connection between the web parts was not set. I can set the connection manually and it works fine, but I would like the connection to be automatically set on each page I create based on the layout.

Is this the expected behavior? If so, is there a way to configure the connection automatically either programmatically or declaratively?

Is there a step I'm missing?

Creating your SharePoint Governance Plan

One of the most common questions that I get from prospects as I'm talking to them about the creation of a governance plan and process is what does it look like. In other words, there are materials available which describe what should be in a governance plan but there isn't a ton of guidance on what the process of creating a governance plan and process are.

Creating Paging for a Repeater Control

A common question is "How do I implement paging within a Repeater?" Although the beauty of the Repeater control is its flexibility, you're on your own for building most functions. ASP.NET 2.0 has included some new controls that provide paging, as does the DataGrid in ASP.NET 1.1. However, this tip shows you how to roll your own paging for a simple data viewer.

Creating an AJAX Repeater in ASP.NET MVC

The "TaskList" is a tried an true example of the most basic thing that you can do in any framework. Unfortunately, I had some problems finding a really good example of all the steps necessary to get a task list to work in ASP.NET MVC 1.0.

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

Creating a Simple Class in C#

The second article in the C# Object-Oriented Programming tutorial describes how classes are created in C# and how behaviour, in the form of publicly visible and private, hidden methods can be added. This demonstrates some of the uses of encapsulation

Creating SharePoint items with CreateItemActivity

Instead of creating new list items from code in your workflow you can use CreateItemActivity. CreateItemActivity can be used for creating list items or files. Properties of interest for this activity are the following (most of them are self-explanatory):

Creating an Excel Spreadsheet programmatically using VB.NET

The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel. This article reveals using Excel from a managed application. Excel is the spreadsheet component of Microsoft Office 2000. The majority of Excel programmatic functionality is exposed through Automation via the type library Excel9.olb. The intention of this article is to express that a managed application can interrelate with Excel as a COM server.

Creating an Excel Spreadsheet and Adding Data to It Programmatically

The Interoperability services make it veryeasy to work with COM Capable Applications such as Word and Excel. Thisarticle reveals using Excel from a managed application. Excel is thespreadsheet component of Microsoft Office 2000. The majority of Excelprogrammatic functionality is exposed through Automation via the typelibrary Excel9.olb. The intention of this article is to express that amanaged application can interrelate with Excel as a COM server.

Creating Excel file from C#

I used below coding for create a excel sheet.I got from on web site.
In below coding there is no problem.Its create the excel file.If i run second time,its ask to overwrite the current excel file.If I said "Yes" then it ok ,but If I select cancel button,its generate the Error message.The exception is

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Creating Dialogs and Ribbon Controls for SharePoint 2010

SharePoint 2010 provides new user interface components, such as server ribbons, and the new dialog platform. As a developer, you can create controls for the server ribbon and dialog boxes for the dialog platform.

Creating a Basic SharePoint Web Part

This programming task includes the steps for creating a basic custom Windows SharePoint Services Web Part. It is a simple Web Part that allows you to change the Web Part's Title property, which is a Windows SharePoint Services WebPart base class property that sets the text in the title bar of the Web Part.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend