---
title: "User control in ASP.NET MVC."  
description: "User control in ASP.NET MVC."  
author: "James Smith"  
published: 2011-09-07  
updated: 2011-09-08  
canonical: https://www.mindstick.com/forum/297/user-control-in-asp-dot-net-mvc  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# User control in ASP.NET MVC.

Hi....\
Am very new in [asp.net mvc](https://www.mindstick.com/forum/155798/what-is-caching-in-asp-dot-net-mvc). I want to create a [user control](https://www.mindstick.com/forum/294/problem-in-access-the-control-inside-the-user-control) in asp.net mvc. I had created it but I did not able to refrence it in my views. \
Please help me!\
\
Thanks.\

## Replies

### Reply by Rahul Kesharwani

Hi everyone in this article I’m explaining about Scaffolding with [Asp.net](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) mvc.

https://www.mindstick.com/articles/1656/asp-dot-net-mvc-scaffolding

### Reply by Anonymous User

Hi James Smith,\
You can write down following code in view where you want to access [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control).\
\

```
<div>      <% Html.RenderPartial("UserControl1"); %></div>
```

\
Where UserControl1 is name of usercontrol which is created under View/Shared directory.\
\
Thanks.


---

Original Source: https://www.mindstick.com/forum/297/user-control-in-asp-dot-net-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
