Best approach for upgrading Web Parts in SharePoint 2010? RRS feed

  • Question

  • what is the best approach for upgrading Web Parts in SharePoint 2010?

    Is AfterDeserialize() method best approach?

    pl suggest.

    Thanks in advance.

    • Edited by Mdh22 Monday, May 13, 2013 4:10 PM
    Monday, May 13, 2013 4:08 PM


  • hi

    what do you mean by "upgrading web parts"? If you have some web part (visual web part, which is just lightweight wrapper over user .ascx control, or if rendering logic is implemented in c#) and want to update its logic, then you need to recompile the assembly with the code of the web part and update it in the GAC of each web front end server in your farm (alternatively you may re-build wsp package with this assembly and re-deploy it to the farm. It will update assembly in the GAC automatically on all WFEs) and make iisreset on all servers.

    Blog - http://sadomovalex.blogspot.com
    CAML via C# - http://camlex.codeplex.com

    Monday, May 13, 2013 6:09 PM