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

  • Home
  • SEARCH
  • 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 4039398
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:36:21+00:00 2026-05-20T12:36:21+00:00

In MVC 3 project, I have a Controller action that returns a View. Let’s

  • 0

In MVC 3 project, I have a Controller action that returns a View. Let’s call it "Profile".

This Profile View has 3 tabs on it. The content of each tab is loaded with jQuery AJAX from 3 different controllers. Let’s say the 3 tabs are called

Contact, Interests, and Games

What I want to do, is when the user types the following into browser’s URL box:

http://www.mywebsite.com/profile/contact

it should open the Profile View with Contact tab being displayed. If the users types

http://www.mywebsite.com/profile/interests

it should open the Profile View with Interests tab being displayed.

This is easy, and now comes the hard part. While inside the Profile View with the Contact tab opened, if the user clicks on the Interests tab, I want that tab rendered with HTML from AJAX call and I want the URL to change and display

http://www.mywebsite.com/profile/interests

Is this possible? How can I accomplish this?

  • 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-05-20T12:36:22+00:00Added an answer on May 20, 2026 at 12:36 pm

    Javascript will not allow you to change the URL without triggering a page load – it’s a basic security feature, as phishers would use it to make it look like you were at usbank.com rather than stealingyouridentity.com.

    The best way to do it to use window.location.hash rather than a full, new URL.

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

Sidebar

Related Questions

I have an ASP.NET MVC project and I have a single action that accepts
I have an ASP.NET MVC project with a form. In the Action method that
I have a troubleshoot with my MVC project. I'm trying to do this: On
I have a new ASP.NET MVC project (my first), and I had been running
I have nant set up to build my ASP.NET MVC project and it works
I'm working on a Spring MVC project, and I have unit tests for all
I've just create a new MVC project, and have made no changes at all,
I have a Silverlight project (with ASP.net MVC web project) Suddenly, when I press
I have a standard ASP.NET MVC (RC Refresh) web project, with the standard ASP.NET
I am in the start up of a project using ASP.NET MVC and have

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.