简体   繁体   English

Sharepoint 2013:我的Sharepoint解决方案不包含default.aspx页

[英]Sharepoint 2013: My sharepoint solution doesn't contain default.aspx page

我创建了一个共享点应用程序,在其中添加了一个Web应用程序项目,但是我没有找到default.aspx页面的问题

Once you have the web application, you need at least a site collection to be able to navigate to. 有了Web应用程序后,至少需要一个网站集才能导航到。 Once you create a site collection , every site in it (including the root site) will have a page called Home.aspx - that's the default one for SharePoint, not default.aspx - which you can browse. 创建网站集后 ,其中的每个网站(包括根网站)都将具有一个名为Home.aspx的页面-这是SharePoint的默认页面,而不是default.aspx您可以浏览该页面。 Also by default, navigating to a site's URL without a page name in the URL will lead you to Home.aspx. 同样默认情况下,导航到网站的URL中没有页面名称的URL也会将您带到Home.aspx.

Edit, to answer OP's comment: 编辑,以回答OP的评论:

i created a new web part in visual studio in order to deploy it in my Sharepoint site. 我在Visual Studio中创建了一个新的Web部件,以便将其部署到我的Sharepoint网站中。 In visual studio , i created an empty sharepoint project in which i added a web part to it , the problem i didn't find the default.aspx page in the project that i created 在Visual Studio中,我创建了一个空的sharepoint项目,在其中添加了一个Web部件,该问题在我创建的项目中找不到default.aspx页

Web part and visual web part projects don't include pages. Web部件和可视Web部件项目不包含页面。 You may include a page in a module if you wish, but you will have to create it yourself. 您可以根据需要在module包含页面,但是必须自己创建页面。

Also, visual web parts are more like user controls than ASP.NET pages. 此外,视觉Web部件比ASP.NET页更像用户控件。 You create these to add to web part zones pages. 您创建这些以添加到Web部件区域页面。 If you want to deploy pages, you might want to choose another project type. 如果要部署页面,则可能要选择其他项目类型。

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

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