Shibly  Sadik

Shibly Sadik

  • NA
  • 167
  • 139k

Passing value from view to controller

Feb 26 2015 12:45 AM
I need to take a value through textbox and assign the value inside a action..
i have an action like below..

public ActionResult Edit(int id)
{
id=1 //it works,but if
id=value from view //it does not work

}

How can i solve it??

Answers (2)