Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#myTable').on('click', 'td', function () {
- var serial = table.cell(this).data();
- var form = $('<form action="@Url.Action("status")" id="hiddenform"><input type="hidden" id="serial" name="serial" value=""></form>').appendTo('body');
- $('#serial').val(serial);
- form.submit();
- });
- //Accept GET and POST
- [AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post)]
- public ActionResult Status(System.Web.Mvc.FormCollection collection)
- {
- string serial = collection["serial"];
- if (serial == null || serial == "")
- System.Windows.Forms.MessageBox.Show("Error: Serial is NULL");
- return View(serial);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement