asp.net Web方法是否触发回发? [英] Does asp.net web method triggers a postback ?

查看:68
本文介绍了asp.net Web方法是否触发回发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

asp.net Web方法是否触发回发?

在此先谢谢您.

Hi all ,

Does asp.net web method triggers a postback ?

Thanks in advance.

推荐答案

这取决于您的调用方式,如果您使用JQuery或javascript从客户端调用它,则不会发回任何邮件,但是如果您从服务器端调用它们,然后是.因此,并非必须要有回帖.
It depends on the way you are calling, if you calling it from client side using JQuery or javascript, then no post back, but if you are invoking them from server side then yes. So its not mandatory that they will have post backs


我同意 Anuja Pawar Indore .它取决于您正在执行的代码,例如,如果您正在执行服务器端代码,它将触发,而如果您正在执行客户端代码,则可能不会.因此它不是强制性的.这取决于您的要求和相应的实现.

祝你好运.
I agree with Anuja Pawar Indore. It depends on the code you are executing, like if you are executing server side code, it will trigger and if you are executing client side code then it might be not. so it is not mandatory. It depends upon your requirement and implementation accordingly.

Good luck.


你好朋友..

方法的回发取决于您调用它的方式..

1)如果您从任何按钮单击事件或任何其他服务器控制事件中调用该方法,则将用于回发

2)或者,如果您使用javascript或jquery或Ajax调用来调用该Web方法,则它将不会回发

因此方法回发将取决于您用来调用它的类型.
Hello friend..

post back of method is depend on the way you call it..

1) if you call that method from any button click event or any other server control event then it will be goes for post back

2) Or if you call that web method using javascript or jquery or Ajax call then it will not post back

so method post back will depends on your type which you use to call it..


这篇关于asp.net Web方法是否触发回发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆