Does the ASP.NET MVC AjaxHelper deal with degradation?

Does anyone know if the AjaxHelper in the ASP.NET MVC framework deals with degradation?

For example, if you have an ActionLink that updates the content of a div, if JavaScript unavailable, will the page do a full postback by renderubg the page (via an action on a controller) and call the action specified in the ActionLink?

If not, how would you suggest making a page function correctly for browsers with JavaScript enabled and those who have it disabled within the context of an MVC app?


One thing you could try is in your controller, override the OnActionExecuted method and change the filerContext.ActionResult for non-JavaScript enabled browsers. You can also add you own ActionFilters to different actions in the controller.

You can specify an Url parameter to the AjaxOptions object to the Ajax.ActionLink call:

@Ajax.ActionLink(role, "GetPeopleData",
    new { selectedRole = role },
    new AjaxOptions
        UpdateTargetId = "tbody",
        Url = Url.Action("GetPeopleData", new { selectedRole = role })

Need Your Help

R create a variable from row values

r statistics data-analysis

I'm working with data from an "income/expense per home" poll done by the mexican government in which every tenement can contain more than one home.

Detecting child element animation

javascript jquery html css html5

I have a parent div and inside that there are child divs which are animating left to right. How to detect if any of the child div is animated. The child divs are moving and the left position in the...