asp.net中的_dopostback何时使用 [英] _dopostback in asp.net when to use
本文介绍了asp.net中的_dopostback何时使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 何时使用_dopostback?在什么情况下这个_dopostback看起来非常有用?请解释一下。
--When to use _dopostback ? In what scenario this _dopostback seems very useful? Kindly explain me.
推荐答案
_dopostback
用于执行来自javascript的PostBack类似于document.getElementById('buttonID')。click();
通常我们使用这些技术强制执行回发。
例如,您已从页面打开弹出窗口,并在弹出控件上执行一些数据保存操作。现在您要更新您的父页面Listview / Gridview / repeater以重新绑定。然后你可以使用_dopostback
或document.getElementById('buttonID')。click();
执行回发并在按钮点击事件上重新加载所需数据。
Hi,
_dopostback
is used to perform a PostBack from javascript and is similar todocument.getElementById('buttonID').click();
Normally we use these techniques to forcefully perform a post back.
An example is you have open a popup from your page and on the popup control you perform some data save operations. Now you want to update your parent page Listview/Gridview/repeater to rebind. Then you may use_dopostback
ordocument.getElementById('buttonID').click();
perform a postback and on the button click event reload the desired data.
您可以查看以下链接以了解_dopostback
http://dotnetprof.blogspot.in/2012 /08/dopostback-function-in-javascript.html [ ^ ]
You can check the below link for an understanding of _dopostback
http://dotnetprof.blogspot.in/2012/08/dopostback-function-in-javascript.html[^]
这篇关于asp.net中的_dopostback何时使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文