Are ASCXs still used in ASP.NET MVC or should we be using something else?
+5
A:
Yes, you can still use .ascx. They are often referred to as partial views.
klabranche
2009-09-25 00:33:46
+3
A:
You bet, I typically use an ascx to render a partial view for some type of ajax functionality. Although, as Jeffrey Palermo points out they don't add much value beyond the extension being a direct inclination that your are working with a partial view.
Toran Billups
2009-09-25 00:35:45
+3
A:
The great thing about them is that in your controller you can then use
return PartialView("MyPartialView", items);
This works great in a jQuery call when you are only interested in changing the contents of particular part of the page and not the whole page.
griegs
2009-09-25 03:00:41