gpt4 book ai didi

asp.net - AutoPostBack=True 和 AutoPostBack=False 之间的区别?

转载 作者:行者123 更新时间:2023-12-03 07:48:16 25 4
gpt4 key购买 nike

AutoPostBack=TrueAutoPostBack=False 有什么区别?

最佳答案

取自 http://www.dotnetspider.com/resources/189-AutoPostBack-What-How-works.aspx :

Autopostback is the mechanism by which the page will be posted back to the server automatically based on some events in the web controls. In some of the web controls, the property called auto post back, if set to true, will send the request to the server when an event happens in the control.

Whenever we set the autopostback attribute to true on any of the controls, the .NET framework will automatically insert a few lines of code into the HTML generated to implement this functionality.

  1. A JavaScript method with name __doPostBack (eventtarget, eventargument)
  2. Two hidden variables with name __EVENTTARGET and __EVENTARGUMENT
  3. OnChange JavaScript event to the control

关于asp.net - AutoPostBack=True 和 AutoPostBack=False 之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12173914/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com