كيفية إضافة صفحة .aspx في مشروع SharePoint 2010 مع Visual Studio 2012؟
-
09-12-2019 - |
سؤال
ذهبت عبر الروابط التالية:
href="http://www.codeproject.com/tips/312544/how-to-add-custom-asp-net-page-using-layouts-folde" rel="nofollow"> http://www.codeproject.com/tips/312544/how-to-add-custom-asp-net-page-using-layouts-folde
http:// sharePointsolution2010.blogspot.inouse1/05/add-custom-aspx-page-in-sharePointsory.0.html
هل هذه طريقة صحيحة لإضافة صفحة .aspx؟
متطلباتي هو إظهار بيانات قائمة مخصصة في صفحة .aspx، التي ستتطلب رمز خلف.
تنبيه البريد الإلكتروني سيكون له رابط لفتح صفحة .aspx هذه.
ما هي الطريقة الصحيحة لإضافة صفحة .aspx؟لا يوجد خيار مباشر متوفر في VS2012.
المحلول
Not 100% sure about Visual Studio 2012, but in Visual Studio 2008 & 2010, I had to modify "....csproj" and add a Projecttypes Guids for web projects to make this project web anf let me add ".aspx" or any other web related contents to project.
here's link to few known ProjectTypeGuids
Hope it helps :)
نصائح أخرى
I have an option in VS2012 to add an Application Page to the project. But it requires your project to be Farm Solution. Otherwise, you can't deploy to SharePoint hive (cause you need to place page to _layouts folder to have codebehind).
Also you can install CKS DEV to have more option for adding new items in SP project.
Why don't you make a Visual Web Part and deploy everything on a Web Part Page? Create a Web Part Page from SharePoint...
You can see here is explained the difference between using a Web Part and Application Pages
You can achieve everything you need in a Visual Web Part, I hope this helps