« first day (4 days earlier)    last day (14 days later) » 

10:53 AM
<button id="cmdsave_2" style="background-image: url(@Url.Content("~/Images/save.gif")); background-color: white; border: none; height: 32px; width: 65px;"
type="submit" tabindex="4" onclick="location.href='@Url.Action("save_Main", "Code_Main" , new { Main_ID = document.getElementById('Main_ID').value , Main_CodeDD = document.getElementById('Main_CodeDD').value , cmbAType_SD = document.getElementById('cmbAType_SD').value , cmbCType_SD = document.getElementById('cmbCType_SD').value}) />
possible to send textbox value as paramter to action
<button id="cmdsave_2" style="background-image: url(@Url.Content("~/Images/save.gif")); background-color: white; border: none; height: 32px; width: 65px;"
type="submit" tabindex="4" onclick="location.href='@Url.Action("save_Main", "Code_Main" , new { Main_ID = document.getElementById('Main_ID').value , Main_CodeDD = document.getElementById('Main_CodeDD').value });
0
Q: pass text box value as parameter to action ? MVC

Nouman ArshadI have to save method on page master and detail like this @using (Html.BeginForm("Create", "Code_Main", System.Web.Mvc.FormMethod.Post)) { @Html.EditorFor(model => model.Main_Code, new { htmlAttributes = new { @Value = ViewBag.Main_Code } }) @Html.EditorFor(model => model.Main_CodeDD, ne...

 

« first day (4 days earlier)    last day (14 days later) »