---
title: "How to Retrieve form values in controller action?"  
description: "How to Retrieve form values in controller action?"  
author: "Sunil Singh"  
published: 2017-12-15  
updated: 2017-12-15  
canonical: https://www.mindstick.com/forum/34400/how-to-retrieve-form-values-in-controller-action  
category: "c#"  
tags: ["asp.net mvc", "mvc"]  
reading_time: 1 minute  

---

# How to Retrieve form values in controller action?

I want to get form [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) data .I have an [MVC controller](https://www.mindstick.com/forum/12890/how-can-asp-dot-net-mvc-controller-return-an-image) that has this [Action Method](https://www.mindstick.com/forum/160300/how-to-pass-data-to-an-httppost-action-method-in-a-dot-net-core-api):

```
[HttpPost]
public ActionResult SubmitAction()
{
     // Get Post Params Here
 ... return something ...
}
```

and i have [simple](https://yourviews.mindstick.com/story/1469/5-simple-ways-to-stay-fit-amp-healthy) form with textboxes

How I [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) the [parameter values](https://www.mindstick.com/forum/159230/is-default-parameter-values-supported-in-java)?\

## Replies

### Reply by Manish Kumar

You could have your [controller](https://www.mindstick.com/blog/273/passing-values-from-controller-to-view-in-asp-dot-net-mvc) action take an object which would reflect the form input names ..

```
[HttpPost]
public ActionResult SubmitAction()
{     var value1 = Request["SimpleProp1"];
    var value2 = Request["SimpleProp2"];
    var value3 = Request["ComplexProp1.SimpleProp1"];
    ...
    ... return something ...
}
```

\

\


---

Original Source: https://www.mindstick.com/forum/34400/how-to-retrieve-form-values-in-controller-action

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
