Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: '@Url.Action("StopMyMethod")',
- type: 'GET',
- cache: false,
- data: { boolValue:true },
- success: function (data) {
- alert('success');
- },
- error: function (data) {
- alert('Error');
- }
- });
- Boolean StopOvsPersonalDataDetail = false;
- [HttpGet]
- public ActionResult MyMethod(int id)
- {
- foreach(var a from list)
- {
- if (StopOvsPersonalDataDetail)
- break;
- }
- return View(list);
- }
- [HttpGet]
- public ActionResult StopMyMethod(Boolean boolValue)
- {
- StopOvsPersonalDataDetail=true;
- return view;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement