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.cshtm
l 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
Post a Comment