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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:06:18+00:00 2026-06-16T11:06:18+00:00

i have this in my partial view: <script type=text/javascript> var jqxhr = $.getJSON(<%= Url.Action(GetTrainingModulePoints

  • 0

i have this in my partial view:

<script type="text/javascript">
   var jqxhr = $.getJSON("<%= Url.Action("GetTrainingModulePoints" , "Home") %>", function (data) {
      console.log(data.id);
   });
</script> 

HomeController:

[HttpGet]
public JsonResult GetTrainingModulePoints()
{
  var currentUser = ZincService.GetUserForId(CurrentUser.UserId);
  ZincService.TrainingService.GetTrainingModulePoints(currentUser.UserId);
  return Json(new { success = true }, JsonRequestBehavior.AllowGet);
}

the GetTrainingModulePoints method is in the HomeController in the root controller directory.
I get an 500 Internal Server Error, so it is not finding it. What is wrong with my Url.Action?

please help?
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-16T11:06:20+00:00Added an answer on June 16, 2026 at 11:06 am

    You are correctly using an Url helper to generate the url to the controller action. But you are confusing status code 500 with 404. Status code 500 means Internal Server error. This error could be caused for example if an exception is thrown inside your controller action.

    The ZincService.GetUserForId and ZincService.TrainingService.GetTrainingModulePoints are good candidates for this exception.

    If you use a javascript debugging tool in your browser (such as FireBug or Chrome developer toolbar) you can inspect the Network tab where you will see the exact request/response for the AJAX request. By looking at the response you might get more information about the reason for the error.

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

Sidebar

Related Questions

I have a partial view with this jquery script: $(#btnGetEmpInfo).click(function () { var selectedItem
I have this in my partial view: <tr> <% for (int currentDay = 0;
How can i dynamically load a Partial View? I mean I have this view,
I have this partial view rendered multiple times on a page: @model POS.Domain.Entities.Category <div
I am trying to test an ActionResult that returns a partial view. This action
say I have this control: public partial class bloc999 : UserControl { bloc999Data mainBlock
I have a constructor question for C#. I have this class: public partial class
I have this user defined function. public partial class UserDefinedFunctions { static int i;
Ok I have this problem I'm trying to use Jquery to load a partial
I have a program that looks something like this: public partial class It {

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.