.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

Updating sites based on a template

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint

I'm currently planning a SharePoint site which will hold a number of subsites. All of these subsites will be based on a sitetemplate. Now in the future, I'm forseeing changes being made to that template. That's because at this point, it's not 100% clear how the subsites should look. We're probably going to miss out on some things which we will correct in the future.

Now suppose I've got a 100 sites already created and my manager tells me that I have to add a document library. I can add it, save the site template again and all the newly created sites (sites are created in our CRM app) will have the new document library. But what about all the sites already there? They'll won't get updated so they won't have the new document library. And if I want to add it, I would have to add it manually a 100 times, or write some code which will add it.

Now a new document library is only an example. There could be a lot more going on, like pages changing, webparts being added or deleted, etc. How do you guys facilitate such things? Or is a question of once a site is created it's just bad luck?

MCTS in Web Application Development in .NET 2.0

View Complete Post

More Related Resource Links

Status List WebPart or KPIListWebPart missing when create sites based in a site template that has it


Hi Everyone,

I have a site collection in SharePoint server 2010, and within this site collection I have a site. This site has KPIListWebPart or Status List WebPart. I have added this WebPart through SPD 2010, because through SharePoint you cannot add this particular WebPart.

The problem is the following:

The site (with the Status List WebPart) has to be a Site Template, in order to allow the users to create sites as needed. In the site, the Status List WebPart works perfectly, but when I create a new site based in the site template, the Status List WebPart is missing. 

Any idea why is it happening?


Thanks in advance and best regards,


Forms based users being prompted for windows authentication login for My Sites photos in user lists

Here's an issue I didn't see coming for our forms based authentication users. 

We have a web application extended to an external url to handle forms based authentication for users outside of our domain. Our setup looks like this...

Internal Users/Windows Authentication - moss.domain.com
External Users/Forms Based - mossext.domain.com
My Site for Internal Users - mysites.domain.com

When our forms based users are accessing user lists, or discussion pages that display user pictures, they are getting a windows authentication login for our internal users (mysites.domain.com) who have populated their my site with personal photo.

How do we fix this? 

Sharepoint My Sharepoint Sites not updating.


The sharepoint My Sharepoint Sites list will not update.  It last updated with the results from 4/22/10. I determined that by looking in out Share Sevices Administration  database in the memberGroup table.  It shows current entries for everything prefaced by Mailto:   So the distribution groups are updating however, nothing is updating for the actual sites.  New sites have been added since this time and Membership in the Members group of these sites has  changed as well but none of these changes have been reflected i nthe My sharepoint sites.   These changes also do not appear in the My Memberships portion of someone's My Site.  Any suggestions?


We are running Sharepoint 2007 SP2 with W.S.S. 3.0 on a Windows srver 2003 R2 SP2 server.    No changes were made to the system on the date in question.  Perhaps 3 new team sites has been added in the days leading up to the problem. 

We see no errors in any of the timer jobs or the event logs that appear related to the issue.



Creating a volume control slider/setting one template property based on another

So, what I want to do, is to make a volume control that looks like a right angle triangle with the 90 degree angle on the bottom right, and then when you click on it, the area to the left of the selected point is shown in a different color.  In other words, I've created a slider with the right background, what I can't do, is work out how to show the selected area by filling in the triangle.  I have worked out how to bind the height of my triangle on the left to the value of the control, but right now, the rate of rise is exactly half of what I need it to be.  I need to know how to change the template for the area to the left of the selection ( which is the repeat button ) so that the background is twice the height that it is right now.  No matter what size I make the slider, the area is always 1/2 the size it needs to be, so I am sure if I could get it to double inside my template, it would work fine. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">       <Style x:Key="SliderButtonStyle" TargetType="{x:Type RepeatButton}">         <Setter Property="SnapsToDevicePixels" Value="true"/>         <

Updating an InfoPath Form Library Template breaks preexisting SharePoint List Views

When updating an InfoPath template (e.g. adding a new field), any views I have created on the library lose their filters and sorting, as if the columns on which they were built no longer exist.  Has anyone else encountered this and, if so, is there a solution? V/r Noelle

How can create site in sharepoint foundation 2010 based on WSS 3.0 template(.stp file)

Hi,   I  want  to migrate wss3.0  site into sharepoint foundation 2010 site . earlier we  were creating site based on .stp file  in WSS 4.0 . but now we  have   to build same site in sharepoint foundation 2010. I followed  the old way  intall the .stp file  and  based on that trying to create new  site  but getting some error  old version template is not supporetd my this version. how could  l able to create  site  in sharepoint foundation 2010 based on wss 3.0 template . Please help Thanks in advance Jandel Singh

How can create site in sharepoint foundation 2010 based on WSS 3.0 template(.stp file)

Hi,   I  want  to migrate wss3.0  site into sharepoint foundation 2010 site . earlier we  were creating site based on .stp file  in WSS 4.0 . but now we  have   to build same site in sharepoint foundation 2010. I followed  the old way  intall the .stp file  and  based on that trying to create new  site  but getting some error  old version template is not supporetd my this version. how could  l able to create  site  in sharepoint foundation 2010 based on wss 3.0 template . Please help Thanks in advance Jandel Singh

Updating a list item based on the value of a different list item

Ok, I've searched everywhere and have gotten mixed information about whether this is possible with standard Sharepoint functions.  I new at Sharepoint, but I'm doing this to help out the department which is short of help right now.  Here's what I'm intending to do - We need a small ticketing system to track software requests.  I created a basic list that accomplishes this fine.  I created another list with criteria that software must meet in order to be approved called software evaluations.  I made a "choice" column called approval status in both lists that have the following options: Approved, Pending, Rejected.  I'd like the softwarerequests.approvalstatus to mirror whatever the softwareevaluations.approvalstatus column value is.  I created a workflow using SPD and it's seemingly easy to use.  I attached it to the softwarevaluations list and set the following as the matching criteria: if softwareevaluations.approvalstatus = "approved" then softwarerequests.approvalstatus = "approved". It mentions that the values aren't unique, but I accept anyway.  It doesn't do anything and I'm thinking it might be because it doesn't know what "issue" to reference.    I feel I'm all over the place right now, so it might be easier if someone just asks me what you need to know to help.

Updating an item in one list based on data from another

I thought I understood this fairly well, but it seems that I am missing something.  I have created a change management site that uses a calendar list to mark upcoming changes to our IT systems.  I have also created a second list to track some information about the change items that I don't want to show up on the calendar, such as what the outcome of the change was or if the change process was properly followed.  So I have the calendar list and another list called results.  I know that there needs to be a unique identifier that each list item will have in common, so in the results list I created a column called Change Number.  When a new change item is created in the Change Management calendar a workflow runs that notifies some people that a new change has been submitted, and the last step in that workflow creates a new list item in the results list and sets the Change Number field to be equal to the current item ID field.  That part is working right now.  When I create a new change item I can open the results list and see that there is a new item and it has the proper number in the Change Number field. What isn't working is when I try to take actions in other workflows that use data from both lists.  An example is notifying the creator of the change that it has been approved.  When the list item is changed a workflow starts that

Aply correct template based on a type


Dear all,

I have the follwoing xaml code snipet:

I will try something else and if could not find will try to build a small demo to reproduce

by the way do you thing that in folowing snipet a trigger can be use to test the type of an Item and then based on that type set the property ItemTemplate to correct one ?

 <Style TargetType="{x:Type s:LibraryStack}">
 <Setter Property="ItemTemplate" Value="{StaticResource LibraryItemTemplate}"/>
 <Setter Property

updating view based Clr type


i created a clr type (point) and table.

i have view based properties of this type (select C1.X , C1.Y from tableName)

how can i update this view ( i don't have in view the source object(point))


SharePoint Site Template Not Showing Up In Sites and Workspaces Custom Tab



I've done this so many times with no problems so i'm unsure what might be causing it this time.  I'm simply taking a SharePoint "Team Site" template with a few added web parts and saving this site template so I can use it over again throughout my SharePoint sites.  The .stp does show up in the Site Template Gallery, but for some reason the site template is not shown in Sites and Workspaces to select.

I made sure that all version numbers match by checking the verions via Central Administration -> Operations -> Servers in Farm  
I'm on version

Any ideas on something i'm missing?  In the past all I had to do was save site as template, and than boom! it would show up in Sites and Workspaces.

Any suggestions on what I might be missing would be of much help.

Thank you,


Updating field based on user selection


I have a requirement to update a FormField based on a selected value of a look up FormField. Basically, the look up fleld displays some default values. When users select a deault value, based upon the selection, I want to update another text field with a value stored in a List.

How can I do it using SharePpoint Designer?

Round Gridview footer template textbox value based on this JavaScript



This is my aspx javascript to get total in gridview footer template.. its working fine

The problem is : some time it show footer value is 6.9999999999

I need 6.99 as a result how to achieve this.

Aspx page:-

<script type="text/JavaScript">
function updateControls(elementId)
 var parentElementRef = document.getElementById(elementId);
 var elementRefArray = parentElementRef.getElementsByTagName('INPUT');
 var textBoxTotals = 0;

 for (var i=0; i<elementRefArray.length; i++)
  var elementRef = elementRefArray[i];

  if ( (elementRef.type == 'text') && (elementRef.gridTextBoxType == 'calcTextBox') )
   var textBoxAmount = parseFloat(elementRef.value);
   if ( isNaN(textBoxAmount) == true )
    textBoxAmount = 0;

   textBoxTotals += textBoxAmount;

 if ( isNaN(textBoxTotals) == true ) 
  textBoxTotals = 0;

 for (var i=0; i<elementRefArray.length; i++)
  var elementRef = elementRefArray[i];

  if ( (elementRef.type == 'text') && (elementRef.gridTextBoxType == 'totalsTextBox') )
   elementRef.value = textBoxTotals;
// -->


protected void Gridview1_RowDataBound(object sender, Grid

Repeating items in calendar break after creating a site based on a template



We have the following issue when using a calendar in a site that is based on a template.

We add a calendar to a blank site. This site we save as a template in the solution gallery.

We then create a new site based on a template. After creating a repeating item in the calendar list, the end date of the repeating item will be the end date of the repetition. So the new appointment is spread across 4 weeks for a repeating appointment that repeats for 4 weeks.

If you connect the calendar to Outlook the appointments are displayed correct.

Does anybody have similar results and can confirm this is a bug?

No title displayed in the "New" item creationfor a list based on a created list template.


Hello everybody,

I have a problem with a sharepoint list template. I created a custom list in MOSS2007 that I saved as template. The problem is that the new list based on that saved template doens't display the Title (changed on project's name) when I want to create a new item. So after creating new items, their Project's Name (Title) is set to (none) for all of them because I couldn't specify any Project's Name (Title).

I was back to my original list and when I create a new item, the Project's Name is displayed so I can fill it. I searched in the list settings and nothing was special.

The columns are required in both lists, there is no management of content types (maybe a hidden field but NO!), the list is a typical list with basic settings.

Has someone an idea?

I want to reuse this list and the Project's Name (Title) is very important (!).


Thank you.

SharePoint Tutorial - Team Sites

Team sites are small web sites that are created to store everything about a particular thing. For example a site can be created for a department in an organization like human resources. I site can be created for a particular project. A site can even be created for a meeting. Everything about the thing (department, project, meeting) like documents, lists, calendars, etc. is stored in that site.
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