I have a view (page) called DataGrowth.aspx, how can I display it in the browser like so:
http://localhost/Solutions/Data-Growth/
Trying to do this with ASP.Net MVC2
Thanks
You add an
[ActionName("Data-Growth")]
attribute to the Controller Action. You can then choose to rename your View to Data-Growth.aspx or simply modify your return statement to
return View("DataGrowth");
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.