Things I cannot do in ASP.NET MVC

前端 未结 6 2193
轻奢々
轻奢々 2021-02-08 05:13

Are there some things I cannot do with ASP.NET MVC? Things that are only possible with ASP.NET WebForms, or extremely much easier with WebForms?

We consider u

6条回答
  •  长发绾君心
    2021-02-08 05:38

    The big one is Controls. User Controls are not available with ASP.NET MVC. I have even gone so far as to try using code like this:

    new Label().RenderControl(...ResponseStream...);
    

    No dice.

    Of course, as a part of that, there is no need for view state, so that isn't in there.

    Server controls do work, though.

提交回复
热议问题