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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:56:33+00:00 2026-06-01T03:56:33+00:00

Say I am on Module1 -> Controller1 -> View1. In View1, I want to

  • 0

Say I am on Module1 -> Controller1 -> View1.

In View1, I want to add a regular hyperlink to Module2 -> Controller2 -> View2.

How do I do that?

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-01T03:56:35+00:00Added an answer on June 1, 2026 at 3:56 am

    In ASP.NET MVC links point to action on a controller, not to a view. View can (but not have to be) returned from a given action as a result.

    So, if your View2 is returned from eg. action MyAction on Controller2 sitting in Module2, then you can easily add a link to that action from anywhere by writing:

    @Html.ActionLink("Click Me", 
                     "MyAction", 
                     "Controller2", 
                     new { area = "Module2" }, 
                     new {})
    

    or

    @Html.ActionLink("Click Me", 
                     "MyAction", 
                     new { controller = "Controller2", area = "Module2" })
    

    whichever looks better for you. There are a couple of other possible overrides.

    The Area route property is used in Orchard to specify the target module name.

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

Sidebar

Related Questions

In interactive python I'd like to import a module that is in, say, C:\Modules\Module1\module.py
Let's say that I have a module that has a Queue in it. For
So this is a newbie rails design question. Lets say I want some of
I just want to know how does error controller work for different module ,say
Let's say I want to display the specials module on the homepage in a
Let's say I have a PHP Model-View-Controller framework that maps an address like http://example.com/admin/posts/edit/5
I have a f# library with some values that I want to serialize in
I have a folder structure like this: package_name/ |-- module1 |-- module2 |-- module3
I created a new F# library with say the following expressions: module Module1 let
I have a project which has the following directory structure. root --include ----module1 ----module2

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.