razor - asp.net web pages. Default route -


how can set site (asp.net web pages) urldata default page?

site.com/default/1

  • this work, site.com/1 return 404 error. in web forms work fine, in web pages no

if have default.cshtml default start page, if it´s not listed in list default pages under settings. guess it´s because how routing works in asp.net web pages.

if want index.html start page, need add list default pages, , remove default.cshtml if have that.

see this link

<defaultdocument enabled="true"> <files> <add value="default.htm" /> <add value="default.asp" /> <add value="index.htm" /> <add value="index.html" /> <add value="iisstart.htm" /> <add value="default.aspx" /> </files> </defaultdocument> 

here similar post


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -