Wrap anchor (a) with href=div that holds content list items with class (in sample name tabs)
Have Content Divs, with id same as anchor in tabs
keywords:
jQuery, plugins, jQuery Tabs
ASP MVC Tips and Tricks
Redirect jQuery Authorize Request
When making a request to a JSON service via jQuery that requires the User to be authenicated,
the result is the Login Page being returned and not a 401 Un-authorized
The following code handles this eventuality when placed in the
Application_EndRequest() Method of the Global.asax File
protected void Application_EndRequest() {
var context = new HttpContextWrapper(Context);
// If we're an ajax request, and doing a 302,
// then we actually need to do a 401
if (Context.Response.StatusCode == 302
&& context.Request.IsAjaxRequest())
{
Context.Response.Clear();
Context.Response.StatusCode = 401;
}
}