KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a function CreatePerson(int id) , I want to pass id from @Url.Action . Below is the reference code: public ActionResult CreatePerson(int id) //controller window.location.href = "@Url.Action("CreatePerson", "Person") + id"; the above code fails to pass id value to CreatePerson function.
Tags (comma-separated)
Save Edits
Cancel