SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just came across User Controls developed by developers who left company now, I tried looking on google on how to upgrade them on development server but couldn't find any blog or post regarding it.

I was wondering if someone knows any easy way of doing it, and any blog that explains them nicely.

I do have a wsp file and .ascx file, and I figured out there is a folder CONTROL TEMPLATES, with .ascx folder but not sure about steps involved.


share|improve this question
it depends on how the initial release of the control has been deployed? Is there a solution? a Feature? Is it a simple copy into the 12 folder? – Steve B Jun 26 '12 at 12:59
up vote 3 down vote accepted

It very much depends on what part of the User Control you need to work with?

The .ascx file is usually placed in the CONTROLTEMPLATES 12 hive folder.

Usually, in SP2007/VS2008, you create an .ascx page (which is actually just an .aspx page without the auto generated .cs file). So you'll have to create a class file and then inherit it in the .ascx file, like so:

<%@ Control Language="C#" Inherits="<assembly>" %>


<%@ Control Language="C#" Inherits="Company.Solution.SubFolder.CodeBehind.MyUserControlCodeBehind" %>

Updating them is quite easy really. If your map structure in your solution is properly made, you can just deploy the .wsp package and everything should be taken care of automatically.

If you only want to update the codebehind, GAC deploy the file and recycle the WebApp and that's up and running. And with the .ascx file, you can just copy/paste it directly into the CONTROLTEMPLATES folder at any time after your first deploy.

Hope this helps :)

share|improve this answer
I just upgraded the solution using STSADM upgradesolution and it all worked fine , cheers guys :) – Muhammad Raja Jun 27 '12 at 8:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.