Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. $.ajax({
  2. url: '@Url.Action("StopMyMethod")',
  3. type: 'GET',
  4. cache: false,
  5. data: { boolValue:true },
  6. success: function (data) {
  7. alert('success');
  8. },
  9. error: function (data) {
  10. alert('Error');
  11. }
  12. });
  13.  
  14. Boolean StopOvsPersonalDataDetail = false;
  15. [HttpGet]
  16. public ActionResult MyMethod(int id)
  17. {
  18.  
  19. foreach(var a from list)
  20. {
  21. if (StopOvsPersonalDataDetail)
  22. break;
  23. }
  24. return View(list);
  25. }
  26.  
  27. [HttpGet]
  28. public ActionResult StopMyMethod(Boolean boolValue)
  29. {
  30. StopOvsPersonalDataDetail=true;
  31. return view;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement