2
Reply

Passing value from view to controller

Shibly  Sadik

Shibly Sadik

Feb 26 2015 12:45 AM
458
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)