Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8201129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:42:10+00:00 2026-06-07T06:42:10+00:00

I am working for asp.net MVC3 Razor view. I have created for dynamically loading

  • 0

I am working for asp.net MVC3 Razor view. I have created for dynamically loading tabs based on each clicking of left menu.

And my jquery:

var form = $("ul#autotab li").click(function () {

                $tabs = $("#tabs").tabs({
                    tabTemplate: "<li id='" + tab_title + "'><a href='#{href}'>#{label}</a> <span class='ui-icon1 ui-icon-close'>x</span></li>",
                    add: $.ajax({
                        type: "GET",
                        url:'/Product/GetDetailsForTab/',
                        success: function (result) {
                            $("#tabs" + counter).html(result);
                        }
                    })
                });
                $tabs.tabs("add", "#tabs" + tab_counter, tab_title);
            }

Here if i click one of our left menu means, I want to check if user Authorized or not in jquery tabs function. If user not Authorized means it should redirect default Log in page. I already set the Authorize attribute in'/Product/GetDetailsForTab/' ActionResult.

The Above code is working, but the problem is,
if not authorized means, it will redirect a Login page with in tabs content. Here i need to Redirecting page in new window instead of tabs content area.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:42:13+00:00Added an answer on June 7, 2026 at 6:42 am

    You may take a look at the following blog post from Phil Haack. In it he illustrates a nice solution which allows you to prevent the forms authentication module from redirecting to the LogOn page in case of AJAX requests but return a real 401 status code that you could intercept in your client script and act accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on asp.net MVC 3 application. I have created a Razor view
I have been working on ASP.Net MVC3. I created view and controller. Also, I
I am working with razor view engine in asp.net mvc3. Now, I need an
I am working on ASP.NET MVC3. I have a partial view RestaurantAdminNavigation.ascx which i
I am working on a project which adopted ASP.NET MVC3(Razor) tech. Now, I have
I'm working in asp.net mvc3 and have partial views for my tabs and log-in
I am working on ASP.net MVC 3.0 Razor View Engine Application. I have a
I am working in ASP.NET MVC3 using Razor. I have a situation where I
I'm working on e-commerce site which is based on ASP.NET MVC3 with Razor Engine.
I am working on an ASP.NET MVC3 application. In the Views I created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.