什么是asp.net中的autopostback [英] what is autopostback in asp.net

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

问题描述

在asp.net中什么是自动回发

what is autopostback in asp.net

推荐答案

默认情况下,自动回发属性是布尔型属性,它为false.

如果我们将任何控件的autopostback属性设置为true,则在对任何控件进行处理后,都会向服务器发送请求(回发).

例如.如果dropdownlist的autopostback为true,则在更改索引后,所选索引更改事件将触发并向服务器发送请求.
Autopostback property is a boolean property by default it is false.

If we set autopostback property to true of any control then after processing on any control a request (postback) is send to the server.

eg. if autopostback of dropdownlist is true then after changing the index the event selected index changing triggers and request is send to the server.


AutoPostBack属性用于设置或返回是否自动当用户按下"ENTER"时,回发.或"TAB"在TextBox控件中.如果将此属性设置为TRUE,则启用自动回发,否则为FALSE.默认值为FALSE.
The AutoPostBack property is used to set or return whether or not an automatic post back occurs when the user presses "ENTER" or "TAB" in the TextBox control. If this property is set to TRUE the automatic post back is enabled, otherwise FALSE. Default is FALSE.


ex
<asp:TextBox ID="txtPassword" AutoPostBack="True" runat="server">


这篇关于什么是asp.net中的autopostback的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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