AjaxOnly

This attribute is a ActionMethodSelectorAttribute.
It will check that the request is made using ajax.

        [HttpGet, AjaxOnly]
        public ActionResult Contact()
        {
            LoginModel model = new LoginModel();
            return PartialView(model);
        }

Last edited Jun 12, 2013 at 11:21 AM by jefflequeux, version 1

Comments

No comments yet.