none
SharePoint 2013 Web Part

    Question

  • Hello,

    I recently upgrade my sharpoint from 2010 to 2013, and trying to improve the way we used to develop in sharepoint.

    In the past, I develop .ascx file and  connected it with "Smart Part" on my application page. But I am trying to migrate those code to Project / Solution. However when I modify part of code, I have to redeploy and it will recycle my application pool. It's quire annoying! 

    Any can share some experience with developing web part ? or is there any way that I can redevelop just a web part rather a whole project. Thanks anyway!  :D

    Saturday, November 09, 2013 7:21 AM

Answers

  • Hi Frankenstein,

    Since you have upgrade from SharePoint 2010 to 2013. I feel you have On-premise SharePoint Installation.So , you have option to develop Server side code like web part, event handler, timer-job etc.What ever you were doing in SharePoint 2010 you still can do everything in SharePoint 2013 also as well as developing SharePoint Hosted app.

     Regarding your question of ascx file , you still can use those file and code written in that.It would suggest to create a Visual Web Part  for that and reuse your ascx file. Only thing you need to take care of depreciated method if any, Visual studio will help you to identify if the methods are depreciated.

    Please find the link below about how to create Visual Webapart.

    http://www.sharepoint-journey.com/visual-webpart-in-sharepoint-2013.html
    http://www.ashokraja.me/articles/How-to-create-a-new-Visual-WebPart-in-SharePoint-2013-with-Visual-Studio-2012

    *Please remember to mark your question as answered & Vote helpful,if this solves/helps your problem.* 

    Regards,

    Jayant


    jayant prabhakar

    Saturday, November 09, 2013 9:29 AM

All replies

  • Hi Frankenstein,

    Since you have upgrade from SharePoint 2010 to 2013. I feel you have On-premise SharePoint Installation.So , you have option to develop Server side code like web part, event handler, timer-job etc.What ever you were doing in SharePoint 2010 you still can do everything in SharePoint 2013 also as well as developing SharePoint Hosted app.

     Regarding your question of ascx file , you still can use those file and code written in that.It would suggest to create a Visual Web Part  for that and reuse your ascx file. Only thing you need to take care of depreciated method if any, Visual studio will help you to identify if the methods are depreciated.

    Please find the link below about how to create Visual Webapart.

    http://www.sharepoint-journey.com/visual-webpart-in-sharepoint-2013.html
    http://www.ashokraja.me/articles/How-to-create-a-new-Visual-WebPart-in-SharePoint-2013-with-Visual-Studio-2012

    *Please remember to mark your question as answered & Vote helpful,if this solves/helps your problem.* 

    Regards,

    Jayant


    jayant prabhakar

    Saturday, November 09, 2013 9:29 AM
  • Hi Prabhakar,

    Thanks the link you provided, helpful!

    But, Is there anyway that I can modify the Visual Web Part without redeploy the solution?

    Saturday, November 09, 2013 4:43 PM
  • Hi ,

    What you means by "I can modify the Visual Web Part without redeploy the solution" . All the time if you are migrating the solution from 2007 to 2010 or 2010 to 2013.First you need to modify the Visual Web part by first changing the assembly reference and then any code or function that is deprecated or unsupported.And then only you can deploy and test.

    Regards,

    Jayant


    jayant prabhakar

    Sunday, November 10, 2013 9:28 AM