Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an MVC way of doing ASCX?

Are ASCXs still used in ASP.NET MVC or should we be using something else?

like image 967
BenAlabaster Avatar asked Sep 25 '09 00:09

BenAlabaster


People also ask

How does MVC work in asp net?

In an ASP.NET MVC application, a URL corresponds to a controller action instead of a page on disk. In a traditional ASP.NET or ASP application, browser requests are mapped to pages. In an ASP.NET MVC application, in contrast, browser requests are mapped to controller actions.

What is MVC in .NET with example?

Building Web Applications with ASP.NET Core 3 MVC The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components: the model, the view, and the controller. Each of these components are built to handle specific development aspects of an application.

Can you please explain the request flow in the ASP.NET MVC framework?

The Request flow is as follows: -Request is being taken from User to controller. -Controller processes the request from the user and creates a data Model of that particular request. -Data model that is being created is then passed to View that handles the frontend or the design.


2 Answers

Yes, you can still use .ascx. They are often referred to as partial views.

like image 185
Kevin LaBranche Avatar answered Oct 05 '22 03:10

Kevin LaBranche


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.

like image 38
Toran Billups Avatar answered Oct 05 '22 05:10

Toran Billups