简体   繁体   中英

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. 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. Also by default, navigating to a site's URL without a page name in the URL will lead you to Home.aspx.

Edit, to answer OP's comment:

i created a new web part in visual studio in order to deploy it in my Sharepoint site. 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

Web part and visual web part projects don't include pages. You may include a page in a module if you wish, but you will have to create it yourself.

Also, visual web parts are more like user controls than ASP.NET pages. You create these to add to web part zones pages. If you want to deploy pages, you might want to choose another project type.

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