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 8128019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:44:22+00:00 2026-06-06T07:44:22+00:00

My url routing is working properly inside Areas folder, that means i can go

  • 0

My url routing is working properly inside “Areas” folder, that means i can go to any controller or view from one to another, how can i come out of this Area controller to Parent Controller?

For Ex: in my controller if i give this line it is coming out of Area controller and working properly

//Homecontroller.cs inside Controllers folder
return RedirectToAction("../../Home");  

What is the proper way of coding to come out and connect to parent controller?

  • 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-06T07:44:24+00:00Added an answer on June 6, 2026 at 7:44 am

    You need to specify the area explicitly. Area is a routing parameter, just like controller and action. If you don’t specify it explicitly when generating a URL (i.e. when calling RedirectToAction) the current value is assumed. Which is the area of the current controller.

    For example:

    return RedirectToAction( "Index", "Home", new {Area = "Test"} );
    

    To return to a top-level controller clear the area like so:

    return RedirectToAction( "Index", "Home", new {Area = ""} );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it advisable to implement url routing for an asp.net(webforms) website which is one
I'm currently working on something that would interpret part of the request url as
I am learning .net and building a site that uses url routing. I have
Is there any reason why a route would be properly mapped in one environment
Url Routing is not working on IIS 6. (using System.Web.Routing Namespace) If i am
I'm trying to translate my url routing in Symfony2. I already manage that the
How can I pass two querysting parameters in URL routing using ASP.NET 4.0? I
I've implemented url routing under asp.net 3.5 with the following code: public IHttpHandler GetHttpHandler(RequestContext
How to implement URL Routing in PHP.
I've implemented url routing with the following rule: string virtualPath = ~/ + requestContext.RouteData.Values[page].ToString();

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.