If you are looking Because no developer knows it all...]: HTML ActionLink vs Url Action in ASP NET MVC Razor
How to pass dynamic value in Url. Action method is proccess on the server-side, so you cannot pass a client-side value to this function as a parameter. You can concat the client-side variables with the server-side url generated by this method, which is a string on the output. Try something like this:. Action parameter, Hi, I will show each users photo in comment list. Well, you could call those functions. For example if they are extension methods to the UrlHelper class: window. Action Url. MyFunction1 , Url. MyFunction2 ' or if they are just static functions:.