自动回传为true或为false时会发生什么? [英] what will happen when autopostback is true and when it is false?

查看:71
本文介绍了自动回传为true或为false时会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

回发后,数据为真时是否将数据发送到服务器?请说明自动回发属性

After a Postback does data go to server when it is true? Please explain autopostback properties

推荐答案

设置为true的AutoPostBack将在触发控件的服务器事件时启动页面回发(如单击按钮).与启动的控制事件相关联的服务器端代码将立即发生(连同全部/部分页面加载).

AutoPostBack set to true will initiate a page postback (like clicking a button) whenever a server event for the control is fired. Server-side code tied to initiated control events will happen immediately (along with a full/partial page load).

将AutoPostBack设置为false不会启动此操作,并且在触发另一个回发"事件之前,事件代码也不会触发.

AutoPostBack set to false will NOT initiate this and event code will not fire until another "posting-back" event fires.

这篇关于自动回传为true或为false时会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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