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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:26:36+00:00 2026-05-13T22:26:36+00:00

In a view, I want to consume some Json produced by an action on

  • 0

In a view, I want to consume some Json produced by an action on another controller. I don’t think I ought to be arbitrarily specifing the url for the resource because if I say something like “/Dealerships/GetDealerData” and if my application is a virtual directory at say “www.somesite.com/MyApplication”, then my reference to that resource would break.

I’m sure there’s something to do w/ Routes that will allow me to correctly generate the url of the resource by specifing the controller and action name but I don’t know what it is and am having difficulty finding it. Can someone please point me in the right direction?

  • 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-13T22:26:36+00:00Added an answer on May 13, 2026 at 10:26 pm

    You can use Url.Action(). Something like this:

    <%=Url.Action("MyAction", "MyController")%>
    

    This is the same as <%=Html.ActionLink("MyAction", "MyController")%> but only generating the url, not the <a /> tag.

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

Sidebar

Related Questions

In my view I want to add the text user enter in a textarea
On each cell of my table view I want to have a bar that
I have Auto completed text view,i want to filter the items present in the
I have 4 image views on a view.I want to make the 4 images
Iam in parent view while clicking the button in the parent view I want
i am using custom checkbox buttons in my table view and want to save
I have an android app it displays web view.I want know the app idle
I have a list of images in grid view.I want to display a gallery
I am using the jquery ui datepicker inline mode view I want to be
I have a two views, 1st is a simple view with some introduction about

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.