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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:36:21+00:00 2026-06-17T06:36:21+00:00

I use MVC 3. With the following code: @Ajax.ActionLink(CreateUser, Administration, new AjaxOptions { HttpMethod

  • 0

I use MVC 3.

With the following code:

@Ajax.ActionLink("CreateUser", "Administration",
            new AjaxOptions { HttpMethod = "GET", 
            InsertionMode = InsertionMode.Replace,
            UpdateTargetId = "DialogContainer", 
            OnComplete = "OpenDialog();" })

I get a javascript error when i click the link:

GET> http://myWebsite.com/Administration/Administration?X-Requested-With=XMLHttpRequest
404 (Not Found) jquery-1.8.2.min.js:2

I the function designated for “OnComplete” is fired and the dialog pops out but not content is return from the controller.

Can you help ?

  • 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-17T06:36:22+00:00Added an answer on June 17, 2026 at 6:36 am

    The 404 error tells you that the page /Administration/Administration does not exist. That is the action method Administration does not exist on the AdministrationController.

    Check that the action method “Administration” exists.

    The overload you are using is ActionLink(string linkText, string actionName, AjaxOptions ajaxOptions).

    The query string X-Requested-With=XMLHttpRequest is not required to solve this issue.

    By default Microsoft Ajax and jQuery use a header to signify that a request originates in JavaScript. MVC makes allowances for the fact that not all environments allow custom headers (X-Requested-With is a custom error) to be sent with a request, by allowing the header value to be sent as a Query String parameter.

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

Sidebar

Related Questions

I have the following code in my zf2 controller: <?php namespace Accounting\Controller; use Zend\Mvc\Controller\ActionController,
I use MVC 3, I have a controller with the following code, I cannot
I'm trying to use the Facebook assemblies in ASP.NET MVC 3. I'm following this
Hi, I have a ASP.NET MVC site where I use the following links in
I'm trying to use MVC for a new project after having been around the
MVC use action attributes to map the same view for http get or post:
I use the following code to write cache header on *.png requests: response.Buffer =
I'm very new to Rails, MVC, and CRUD, and I'm trying to use the
I have an asp.net mvc application and i need to to use ajax in
I use telerik grid with Ajax batch editing for MVC – works just perfect.

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.