51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="custom_postback2.aspx.cs"
|
|
Inherits="FineUI.Examples.other.custom_postback2" %>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head runat="server">
|
|
<title></title>
|
|
<link href="../res/css/main.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<f:PageManager ID="PageManager1" OnCustomEvent="PageManager1_CustomEvent" runat="server" />
|
|
<f:SimpleForm ID="SimpleForm1" runat="server" Width="500px" BodyPadding="5px" EnableCollapse="true"
|
|
Title="简单表单">
|
|
<Items>
|
|
<f:TextBox ID="TextBox1" runat="server" ShowLabel="false" EmptyText="输入一些文字并按 ENTER 键">
|
|
<Listeners>
|
|
<f:Listener Event="specialkey" Handler="onTextBoxSpecialkey" />
|
|
</Listeners>
|
|
</f:TextBox>
|
|
<f:TextBox ID="TextBox2" runat="server" ShowLabel="false">
|
|
</f:TextBox>
|
|
</Items>
|
|
</f:SimpleForm>
|
|
</form>
|
|
<script src="../res/js/jquery.min.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
function onTextBoxSpecialkey(box, e) {
|
|
if (e.getKey() == e.ENTER) {
|
|
F.customEvent('TextBox1_ENTER');
|
|
}
|
|
}
|
|
|
|
|
|
//var textbox1ID = '<%= TextBox1.ClientID %>';
|
|
|
|
//F.ready(function () {
|
|
|
|
// F(textbox1ID).on("specialkey", function (box, e) {
|
|
// if (e.getKey() == e.ENTER) {
|
|
// F.customEvent('TextBox1_ENTER');
|
|
// }
|
|
// });
|
|
|
|
//});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|