rakesh
rakesh

Reputation: 113

Why server controls in asp.net mvc?

Considering that ASP.net MVC doesn't support PostBack or ViewState, why are server controls available when creating asp.net mvc applications?

Upvotes: 0

Views: 80

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038810

They are available only if you are using the WebForms view engine because they come as legacy from classic WebForms. With Razor they are no longer available. Anyway, they should never be used in an ASP.NET MVC application so why care about them? If you are working with an ASP.NET MVC application think of them as something non-existent.

Upvotes: 2

Related Questions