FineUI/FineUI.Examples/form/textbox_autopostback.aspx
三生石上 15588d275b v4.2.4.1
2017-09-05 10:49:48 +08:00

39 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="textbox_autopostback.aspx.cs"
Inherits="FineUI.Examples.form.textbox_autopostback" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:SimpleForm ID="SimpleForm1" BodyPadding="5px" runat="server" LabelAlign="Top" EnableCollapse="true"
Title="简单表单" Width="550px" ShowHeader="True">
<Items>
<f:TextBox runat="server" ID="TextBox1" Label="文本框一(自动回发)" EmptyText="输入字符会立即触发TextChanged事件"
AutoPostBack="true" OnTextChanged="TextBox1_TextChanged">
</f:TextBox>
<f:TextBox ID="TextBox2" runat="server" Label="文本框二" OnTextChanged="TextBox2_TextChanged" EmptyText="输入字符后点击提交按钮会触发TextChanged事件">
</f:TextBox>
<f:TextBox runat="server" ID="TextBox3" Label="文本框三(失去焦点事件)" EmptyText="输入字符后失去焦点会触发Blur事件"
EnableBlurEvent="true" OnBlur="TextBox3_Blur">
</f:TextBox>
<f:Button runat="server" Text="提交">
</f:Button>
</Items>
</f:SimpleForm>
<br />
<f:Label ID="labResult1" EncodeText="false" runat="server">
</f:Label>
<br />
<f:Label ID="labResult2" EncodeText="false" runat="server">
</f:Label>
<br />
<f:Label ID="labResult3" EncodeText="false" runat="server">
</f:Label>
</form>
</body>
</html>