KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have code in View: @using (Html.BeginForm("MyAction", "MyController") { <input type="text" id="txt" /> <input type="image" src="/button_save.gif" alt="" /> } How can I pass value of txt to my controller: [HttpPost] public ActionResult MyAction(string text) { //TODO something with text and return value... }
Tags (comma-separated)
Save Edits
Cancel