简体   繁体   中英

Run a aspx page into a Sharepoint folder

I have a aspx page and I'd like to run it into a sharepoint folder. Is there a way to execute this page like a html page? What I really need is to run ac# code that is together the aspx page (code behind) to read a SQLite database and shows the result in a good interface (html-css-javascript).

Obs.: I have a assembly reference for the SQLite.

Thanks a lot!

Not sure "run it into a sharepoint folder" means... You can't have page with code behind in regular SharePoint folders.

You can put ASPX pages (even with codebehind) in Layouts folder on server's disk and they will be avaiable with ....\\layouts\\your_page.aspx urls.

You need to create an application page inside sharepoint and move your code in that application page. its very simple, please see this link.

http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-create-custom-sharepoint-2010-application-page-using-visual-studio-2010/

Please note that application page only support web forms and not MVC

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM