<%= Html.LabelFor(model => model.UserName) %>
public ActionResult EditUser(string UserName)
{
//to do some thing
}
I have a label on my .aspx page and i have a button which calls edit user button in controller. The value of username is not being passed. I am getting a null. How can I get the value?