How can I take more control in ASP.NET?

前端 未结 7 666
感情败类
感情败类 2020-12-22 16:25

I\'m trying to build a very, very simple \"micro-webapp\" which I suspect will be of interest to a few Stack Overflow\'rs if I ever get it done. I\'m hosting it on my C# in

7条回答
  •  误落风尘
    2020-12-22 16:49

    Have you thought about not eliminating the POST but rather redirecting to a suitable GET url when the form is POSTed. That is, accept both GET and POST, but on POST construct a GET request and redirect to it. This could be handled either on the page or via an HttpModule if you wanted to make it page-independent. I think this would make things much easier.

    EDIT: I assume that you have EnableViewState="false" set on the page.

提交回复
热议问题