ASP.NET MVC doesn't work with ViewState and Postback?

后端 未结 3 1311
故里飘歌
故里飘歌 2020-12-02 15:49

Perhaps this is a naive question. In my understanding, ASP.NET MVC cannot work with ViewState and Postback which is fundamentals of ASP.NET forms. Is that correct?

I

3条回答
  •  情深已故
    2020-12-02 16:37

    This might surprise you, but I accidentally dropped a Button on a MVC page, and implemented the Click event, and it actually worked!

    I was surprised, maybe it works for just this simple case (it was the only element on the page at that time), and the fact that the response ended with a redirect, but in some cases it seems it can work :)

提交回复
热议问题