---
title: "How to redirect a user control to the view its called from?"  
description: "How to redirect a user control to the view its called from?"  
author: "Pravesh Singh"  
published: 2014-08-22  
updated: 2014-08-22  
canonical: https://www.mindstick.com/forum/2088/how-to-redirect-a-user-control-to-the-view-its-called-from  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# How to redirect a user control to the view its called from?

I have a [user control](https://www.mindstick.com/forum/294/problem-in-access-the-control-inside-the-user-control) that creates a new record in a database. After it creates the new record, I would like to [redirect](https://www.mindstick.com/forum/2005/radio-button-redirect) it back to the view its from. The [purpose](https://yourviews.mindstick.com/view/247/no-fail-policy-failing-its-purpose) of this is to [refresh](https://www.mindstick.com/forum/12865/how-to-refresh-dropdownlist-but-keep-old-selected-value-json) the view so that it can show the newly [created record](https://answers.mindstick.com/qa/38286/who-created-record-for-most-number-of-wins-307-in-grand-slam-singles-matches-breaking-record-of-martina-navratilova). The [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) is that user control can [exists](https://www.mindstick.com/forum/158947/how-do-you-use-the-exists-operator-to-check-for-the-existence-of-records-in-a-subquery) in more than one view, so how can i know which view is the user control from? so that I can achieve the above [scenario](https://yourviews.mindstick.com/view/81221/sports-will-change-the-education-scenario)? Thanks

## Replies

### Reply by Sumit Kesarwani

Hi Pravesh, try this:\

```
public ActionResult Save(SomeModel model){   db.Save(model);   return
RedirectToAction("Index");}
```


---

Original Source: https://www.mindstick.com/forum/2088/how-to-redirect-a-user-control-to-the-view-its-called-from

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
