In asp.net-mvc controller, what is the best way to generate a URL?

By using the proper overload : string hrSyncUrl = u. Action("Update", "Person", null, "http") And to avoid hardcoding the protocol you could fetch it from the request: var protocol = context.HttpContext.Request.Url. Scheme; string hrSyncUrl = u.

Action("Update", "Person", null, protocol).

By using the proper overload: string hrSyncUrl = u. Action("Update", "Person", null, "http"); And to avoid hardcoding the protocol you could fetch it from the request: var protocol = context.HttpContext.Request.Url. Scheme; string hrSyncUrl = u.

Action("Update", "Person", null, protocol).

See ASP. NET MVC create absolute url from c# code.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions