Answered by:
Createing a aspx page with inline code or code behind

Question
-
I need to write some code and a webpart doesnt look like the correct place for this application , is it possible to write just a single aspx page and insert it into sharepoint and have it work IE in this case communicate with a mssql data base and present a grid etc.. as well as inheirit the mater page of the site it is in ?
if so what tools would i need vs 2013?
Monday, January 11, 2016 3:37 PM
Answers
-
Hi Rob,
Yes, the approach is same for creating the custom page in SharePoint 2010 and SharePoint 2013, below are the example for SP 2013 with steps.
http://www.learningsharepoint.com/2012/12/27/create-an-application-page-in-sharepoint-2013/
http://www.sharepoint-journey.com/application-page-in-sharepoint-2013.html
KRISHANA KUMAR
SharePoint Architect
Please click "Mark As Answer" if this post solves your problem or "Vote As Helpful" if it was useful
- Proposed as answer by Patrick_Liang Thursday, January 14, 2016 8:53 AM
- Marked as answer by robMerritt Thursday, January 14, 2016 2:06 PM
Monday, January 11, 2016 10:14 PM
All replies
-
Hi,
It is good if you can go with creating the custom page with code behind where you will have option to write code and you can leverage the SharePoint look and feel, also you can write code to get or update data from SQL as well, second option you can try is to create the web part and can perform all the operation, Please check this similar thread.
https://social.technet.microsoft.com/Forums/office/en-US/60c6d5a5-91d9-44be-8974-8abe03b6163c/code-behind-for-aspx-pages-in-sharepoint?forum=sharepointdevelopmentlegacy
http://blogs.vertigo.com/personal/willa/Blog/Lists/Posts/Post.aspx?ID=4
KRISHANA KUMAR
SharePoint Architect
Please click "Mark As Answer" if this post solves your problem or "Vote As Helpful" if it was useful
Monday, January 11, 2016 4:15 PM -
the first link is 2010 specific so it may apply to 2013
I cant get to
http://blogs.vertigo.com/personal/willa/Blog/Lists/Posts/Post.aspx?ID=4
I just get a message from the forefront TMG firewall at that site
anyone else have 2013 specific examples?
Monday, January 11, 2016 5:40 PM -
Hi Rob,
Yes, the approach is same for creating the custom page in SharePoint 2010 and SharePoint 2013, below are the example for SP 2013 with steps.
http://www.learningsharepoint.com/2012/12/27/create-an-application-page-in-sharepoint-2013/
http://www.sharepoint-journey.com/application-page-in-sharepoint-2013.html
KRISHANA KUMAR
SharePoint Architect
Please click "Mark As Answer" if this post solves your problem or "Vote As Helpful" if it was useful
- Proposed as answer by Patrick_Liang Thursday, January 14, 2016 8:53 AM
- Marked as answer by robMerritt Thursday, January 14, 2016 2:06 PM
Monday, January 11, 2016 10:14 PM