title: Edit a column value, with buttons, not typing manually
body: <p>i have a question. From image below, wow do i change the status from CREATED, to VERIFIED just by clicking on the VERIFIED BUTTON. I do not want to click on the radio button to edit this. i want to edit the value by using the Verified button. thanks. At the moment, to edit the status, i need to click on radio button and change it. I want to change it just by clicking on the Verified button.</p>
  
  <p><img src="https://i.stack.imgur.com/t6r2B.png" alt="enter image description here"></p>
  
  <p>below are my buttons</p>
  
  <pre><code>                &lt;input type="submit" name="submit" value="Save" class="btn btn-default" /&gt;
                  &lt;input type="submit" name="submit" value="Verified" class="btn btn-default" /&gt;
  </code></pre>
  
  <p>and below is my controller</p>
  
  <pre><code>public ActionResult Edit(ListOfItems objGetListOfItems)
          {
              if (objGetListOfItems == null)
              {
                  return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
              }
              ListOfItems LOIEdit = ARSharedDAL.Find(objGetListOfItems);
              if (LOIEdit == null)
              {
                  return HttpNotFound();
              }
              return View(LOIEdit);
          }
  </code></pre>
  
  <p>This is where it links to stored proc</p>
  
  <pre><code>    public static ListOfItems Find(ListOfItems objGetListOfItems)
      { //
          SqlDataReader rdrDataAccess = null;
  
          ListOfItems objListOfItems = null;
  
          SqlConnection database = new SqlConnection(MyCOODataConn.MyCOOConnectionString);
  
          database.Open();
          SqlCommand databaseCmd = new SqlCommand("SP_APP_SUI_ListOfItemsDetails", database);
          databaseCmd.CommandType = CommandType.StoredProcedure;
  
          databaseCmd.Parameters.Add(new SqlParameter("@idShared", objGetListOfItems.idshared));
  
          rdrDataAccess = databaseCmd.ExecuteReader();
  
          objListOfItems = new ListOfItems();
  
          while (rdrDataAccess.Read())
          {
              objListOfItems = new ListOfItems();
  
              objListOfItems.idshared = GeneralUtil.GetDBInt(rdrDataAccess, "idshared");
              objListOfItems.reftab = GeneralUtil.GetDBString(rdrDataAccess, "reftab", "");
              objListOfItems.codeShared = GeneralUtil.GetDBString(rdrDataAccess, "code", "");
              objListOfItems.abbreviation = GeneralUtil.GetDBString(rdrDataAccess, "abbreviation", "");
              objListOfItems.description = GeneralUtil.GetDBString(rdrDataAccess, "description", "");
              objListOfItems.remarks = GeneralUtil.GetDBString(rdrDataAccess, "remarks", "");
              objListOfItems.effectivedate = GeneralUtil.GetDBString(rdrDataAccess, "effectivedate", "");
              objListOfItems.Status = GeneralUtil.GetDBString(rdrDataAccess, "Status", "");
  
  
          }
  
          return objListOfItems;
      }
  </code></pre>
  
  <p><strong>EDIT</strong> view code</p>
  
  <pre><code>    @using (Html.BeginForm())
  {
      @Html.AntiForgeryToken()
  
      &lt;div class="widgetbox"&gt;
          &lt;h4 class="widgettitle"&gt;Manage Reference Table&lt;/h4&gt;
  
          &lt;div class="widgetcontent"&gt;
  
              &lt;div&gt;
                  @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                  &lt;table&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              @Html.Label("No :", htmlAttributes: new { style = "width: 70px; " })
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.DisplayFor(model =&gt; model.idshared, new { htmlAttributes = new { @class = "form-control" } })
                              &lt;/div&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;div class="form-group"&gt;
                                  @Html.Label("Ref Tab :", htmlAttributes: new { @class = "control-label col-md-2" })
  
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.EditorFor(model =&gt; model.reftab, new { htmlAttributes = new { @class = "form-control" } })
                                  @Html.ValidationMessageFor(model =&gt; model.reftab, "", new { @class = "text-danger" })
                              &lt;/div&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;div class="form-group"&gt;
                                  @Html.Label("Code :", htmlAttributes: new { @class = "control-label col-md-2" })
  
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.EditorFor(model =&gt; model.codeShared, new { htmlAttributes = new { @class = "form-control" } })
                                  @Html.ValidationMessageFor(model =&gt; model.codeShared, "", new { @class = "text-danger" })
                              &lt;/div&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              @Html.Label("Abbreviation :", new { style = "padding-right: 10px; " })
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.EditorFor(model =&gt; model.abbreviation, new { htmlAttributes = new { @class = "form-control" } })
                                  @Html.ValidationMessageFor(model =&gt; model.abbreviation, "", new { @class = "text-danger" })
                              &lt;/div&gt;
                          &lt;/td&gt;
  
                      &lt;/tr&gt;
                  &lt;/table&gt;
  
                  &lt;table style="text-align:left;"&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              @Html.Label("Description :", new { style = "padding-right: 10px; " })
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.EditorFor(model =&gt; model.description, new { style = "width: 150px;" })
                                  @Html.ValidationMessageFor(model =&gt; model.description, "", new { @class = "text-danger" })
                              &lt;/div&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
  
                  &lt;table&gt;
                      &lt;tr&gt;
  
                          &lt;td&gt;
                              &lt;div class="form-group"&gt;
                                  @Html.Label("Remarks :", htmlAttributes: new { @class = "control-label col-md-2" })
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.EditorFor(model =&gt; model.remarks, new { @class = "form-control" })
                                  @Html.ValidationMessageFor(model =&gt; model.remarks, "", new { @class = "text-danger" })
                              &lt;/div&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;div class="form-group"&gt;
                                  @Html.Label("Effective Date:", htmlAttributes: new { @class = "control-label col-md-2" })
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.EditorFor(model =&gt; model.effectivedate, new { htmlAttributes = new { @class = "form-control" } })
                                  @Html.ValidationMessageFor(model =&gt; model.effectivedate, "", new { @class = "text-danger" })
                              &lt;/div&gt;
                          &lt;/td&gt;
  
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;div class="form-group"&gt;
                                  @Html.Label("Status:", htmlAttributes: new { @class = "control-label col-md-2" })
                              &lt;/div&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;div class="col-md-10"&gt;
                                  @Html.RadioButtonFor(x =&gt; x.Status, "CREATED", new {  }) CREATED
                                  @Html.RadioButtonFor(x =&gt; x.Status, "VERIFIED", new { }) VERIFIED
  
                              &lt;/div&gt;
                          &lt;/td&gt;
  
                      &lt;/tr&gt;
                  &lt;/table&gt;
                  &lt;br /&gt;
  
                  &lt;div class="col-md-offset-2 col-md-10"&gt;
                      &lt;input type="submit" name="submit" value="Save" class="btn btn-default" /&gt;
                      &lt;input type="submit" name="submit" value="Verified" class="btn btn-default" /&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
  
          &lt;/div&gt;
  
      &lt;/div&gt;
  
  
  }
  
  &lt;div&gt;
      @Html.ActionLink("Back to List", "Index")
  &lt;/div&gt;
  </code></pre>