---
title: "Controller method not found error"  
description: "Controller method not found error"  
author: "Anonymous User"  
published: 2017-12-18  
updated: 2017-12-18  
canonical: https://www.mindstick.com/forum/34409/controller-method-not-found-error  
category: "c#"  
tags: ["asp.net mvc", "mvc", "mvc4"]  
reading_time: 1 minute  

---

# Controller method not found error

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),

I can't able to send a [request](https://www.mindstick.com/blog/255/post-get-and-request-function-in-php) to the [server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over) through [javascript](https://www.mindstick.com/articles/874/how-to-create-watermark-text-for-textbox-by-using-javascript) [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) on [checkbox](https://www.mindstick.com/articles/291/how-should-use-checkbox-control-in-vb-dot-net) click. Here is my code,

```
 $.post("Admin/UpdateUser", { userId: $(this).attr("id") }, function (response) {
            showMessage(response.message);
        })
```

Its raised [error](https://yourviews.mindstick.com/view/88527/fixing-quickbooks-error-4120-reinstalling-vs-repairing), Please give me some suggestion to accomplish my task.

## Replies

### Reply by Hemant Patel

Hi Sophie,

After analyzing your code, I think your path of controller causes the error. Please follow below line code to accomplish your task.

```
 $.post("../../Admin/UpdateUser", { userId: $(this).attr("id") }, function (response) {
            showMessage(response.message);
        })
```

I hope its informative...


---

Original Source: https://www.mindstick.com/forum/34409/controller-method-not-found-error

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
