2
Answers

Passing value from view to controller

Shibly  Sadik

Shibly Sadik

9y
464
1
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)