简体   繁体   English

将aspx页面运行到Sharepoint文件夹中

[英]Run a aspx page into a Sharepoint folder

I have a aspx page and I'd like to run it into a sharepoint folder. 我有一个aspx页面,我想将其运行到一个sharepoint文件夹中。 Is there a way to execute this page like a html page? 有没有办法像html页面一样执行此页面? 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). 我真正需要的是运行与aspx页一起的ac#代码(后面的代码)来读取SQLite数据库,并以良好的界面(html-css-javascript)显示结果。

Obs.: I have a assembly reference for the SQLite. 观察:我有一个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. 不确定“将其运行到sharepoint文件夹中”的意思是...您无法在常规SharePoint文件夹中找到带有代码的页面。

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. 您可以将ASPX页面(甚至带有代码隐藏)放在服务器磁盘上的Layouts文件夹中,并且它们将可用于.... \\ layouts \\ your_page.aspx url。

You need to create an application page inside sharepoint and move your code in that application page. 您需要在sharepoint内创建一个应用程序页面,然后在该应用程序页面中移动代码。 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/ 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 请注意,应用程序页面仅支持Web表单,不支持MVC

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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