Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to generate url for the action with attribute routing
tri_inn
Jun 18 2017 5:50 PM
216
Reply
public class HomeController : Controller
{
[Route("Users/about")]
[Route("Users/WhoareWe")]
[Route("Users/OurTeam")]
[Route("Users/aboutCompany")]
public ActionResult GotoAbout()
{
return View();
}
}
see i have many route defined for action GotoAbout(). now how could create route url in razor page programmatically when generate url for action like home/users/about ?
thanks
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to set rights for DynamicallyLoadingMenus and buttonsMVC
online payment to bank account through voucher in asp.net c#