PHP header(‘Cache-Control: no-cache, no-store, must-revalidate’); // HTTP 1.1. header(‘Pragma: no-cache’); // HTTP 1.0. header(‘Expires: 0′); // Proxies. Java Servlet response.setHeader(“Cache-Control”, “no-cache, no-store, must-revalidate”); // HTTP 1.1. response.setHeader(“Pragma”, “no-cache”); // HTTP 1.0. response.setDateHeader(“Expires”, 0); // Proxies. ASP.NET Response.AppendHeader(“Cache-Control”, “no-cache, no-store, must-revalidate”); // HTTP 1.1. Response.AppendHeader(“Pragma”, “no-cache”); // HTTP 1.0. Response.AppendHeader(“Expires”, “0″); // Proxies. ASP Response.addHeader “Cache-Control”, […]
Category: Asp.NET
MVC4 Razor ile Ajax Kullanmak
HomeController.cs : [HttpPost] public ActionResult test() { return Content(“Done!”); } View.cshtml : <script type=”text/javascript”> $.ajax({ url: ‘@Url.Action(“test”,”Home”)’, data: {dealerId: dealerID}, type: ‘POST’, success: function(data) { alert(data); } }); </script>