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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:38:45+00:00 2026-05-27T12:38:45+00:00

here is my project hirarchy: from browser.js I’m trying to call ManagerController: $(#jstree).jstree({ json_data:

  • 0

here is my project hirarchy:

enter image description here

from browser.js I’m trying to call ManagerController:

 $("#jstree").jstree({
        "json_data": {

    "ajax": {   


                type: "GET",
                async: true,
                "url": "Controllers/Manager/Getlocations?userId='1234'",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                cache: false,
                success: function (msg) {                         
                        return msg;
                },
                error: function () {
                    // TODO process error
                }
            },

//continuation is less relevant

But I get the following error in chrome console:

GET
http://localhost:1186/MainUgi/Controllers/Manager/Getlocations?userId=‘1234’&_=1324071607446
404 (Not Found)

1) what should be the right path ?

2) what is the &_=1324071607446 which is concatinated to the end of my get request?

update

my controller looks like:

  public class ManagerController : Controller
    {

        public JsonResult GetLocations(string userId)
        {
            var locationsJson = 
            new {[  {"data": "[0]", .. some data...}  ]};

            return Json(locationsJson, JsonRequestBehavior.AllowGet);
        }

my request looks like:

Request URL:http://localhost:1186/MainUgi/Controllers/Manager/Getlocations?userId=1234
Request Method:GET
Status Code:404 Not Found
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:windows-1255,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:he-IL,he;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Type:application/json; charset=utf-8
Host:localhost:1186
Referer:http://localhost:1186/MainUgi/browser.htm
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
X-Requested-With:XMLHttpRequest
Query String Parametersview URL encoded
userId:1234
Response Headersview source
Cache-Control:private
Connection:Close
Content-Length:2346
Content-Type:text/html; charset=utf-8
Date:Fri, 16 Dec 2011 22:00:37 GMT
Server:ASP.NET Development Server/10.0.0.0
X-AspNet-Version:4.0.30319

TIA

  • 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-27T12:38:46+00:00Added an answer on May 27, 2026 at 12:38 pm

    The basic MVC url mask is the following:

    /{CONTROLLER}/{ACTION}?{...PARAMETERS}
    

    By your example we have:

    '/manager/getLocations?userId=1234'
    

    And the controller should have the following code (example):

    [ControllerAction]
    public void getLocations( int userId ) {
        ViewData["UserId"] = userId;
        RenderView("GetLocations");
    }
    

    Now you need to have a view file to show the content. Create a folder (inside the root of the project), named “View”, and inside it, create another one with the name of the controller (Manager), and create a view file called “GetLocations.aspx” (the one that we want asked to render).

    To print the UserId variable in the view:

    <%= ViewData["UserId"] %>
    

    If it doesn’t work, it’s better for you to read a lot about the MVC Pattern. You can start here.

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

Sidebar

Related Questions

I been trying to get the Spring Batch Hello World 3 example running from
I have a project here that connects to an in-production database and grabs tables
I have a project here the goal is to merge multiple Access DB's into
I'm starting a new project here (Windows Forms). What's the best option today for
We're working on a project here in Visual Studio 2008. We're using the built-in
You can see my project here - http://www.inluxphoto.com/custom/jsgallery/index.php I am attempting to make the
Hey, I'm really stuck with my project here... I need to know when any
I'm working an action for message search in my project,and here are the two
Here's the scenario: A C# Windows Application project stored in SVN is used to
Here is my situation: I have a C project linking with many libraries (I

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.