如何在MVC中标识回发 [英] How to Identity postback in MVC
本文介绍了如何在MVC中标识回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友,
我想知道在MVC应用程序中有什么方法可以识别PostBack.
hi friends,
i want to know that is there any way to identify the PostBack in view of MVC application.
推荐答案
没有IsPostBack -一切都是POST或GET(或其他HTTP动词).您可以使用AcceptVerbsAttribute来限制操作允许的HTTP动词,即永远不会看到来自禁止动词的请求.
参考:
ASP.NET MVC-IsPostBack还在吗? [ ^ ]
There is no IsPostBack -- everything is either a POST or GET (or other HTTP verb). You can limit the HTTP verbs that your action allows, i.e., you''ll never see a request from a disallowed verb, using the AcceptVerbsAttribute.
Refer:
ASP.NET MVC - Is IsPostBack still here?[^]
这篇关于如何在MVC中标识回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文