事件信息如何从“提交类型"按钮传递 [英] how the event information passed from submit type button

查看:83
本文介绍了事件信息如何从“提交类型"按钮传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果按钮控件的usesubmitbehavior设置为false,它将在浏览器页面源中的javascript中生成_dopostback函数,并将eventtarget和event参数从该函数传递给服务器以引发按钮click事件,否则, usesubmitbehavior设置为true,按钮输入类型变为Submit,这里没有eventargument,eventtarget参数和postback函数,它如何将事件信息从浏览器传递到服务器

If the usesubmitbehavior is set to false for the button control, it will generate the _dopostback function in javascript in the browser pagesource and pass the eventtarget and event argument from this function to the server for raising the button click event, otherwise if the usesubmitbehavior is set to true the button input type become submit, here it does not have the eventargument, eventtarget parameter and the postback function, how does it pass the event information from the browser to the server

推荐答案

您今天是第3次问这个问题-
如何将事件消息从浏览器传输到服务器提交按钮 [ ^ ]
是否通过使用viewstate单击按钮 [ ^ ]

该网站的质量检查"部分非常全面,可以进行完整的讨论,并消除您的疑问.
使用有问题或评论"链接与答题者讨论某些内容.您甚至可以单击改善问题"链接来更新您的问题并添加更多信息.


现在关于这个问题,任何控件的原始状态都保存在viewstate中,并且可以通过比较这些值在服务器上确定所有更改.检查页面生命周期以了解何时发生(Google知道).
You are asking this question 3rd time today -
how the event message is transmitted to the server from the browser for submit button[^]
whether the button is clicked or not by using viewstate[^]

The QA section of the site is comprehensive enough to have a complete discussion and get your doubts clear.
Use the ''Have a Question or Comment'' link to discuss something with the answerer. You can even update your question and add more information by clicking ''Improve Question'' link.


Now about the question, the original state of any control is saved in the viewstate and any changes can be determined on the server by comparing the values. Check Page Lifecycle to know when what happens (Google that).


这篇关于事件信息如何从“提交类型"按钮传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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