hello,
i want to get rout data value in user control.
i tried this but not working
HttpContext.Current.Request.RequestContext.RouteData.Values["ID"].ToString()
Hi nauna,
Refer below links -
https://johnnycode.com/2014/10/03/how-to-get-the-current-controller-name-action-or-id-asp-net-mvc/
https://stackoverflow.com/questions/20626860/in-mvc3-how-to-get-the-current-action-name
https://coderwall.com/p/zw7ina/get-route-attributes-in-mvc-5
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.