zoukankan
html css js c++ java
asp.net 2.0 中无刷新机制
<%
@ Page Language
=
"
C#
"
%>
<%
@ Implements Interface
=
"
System.Web.UI.ICallbackEventHandler
"
%>
<!
DOCTYPE html PUBLIC
"
-//W3C//DTD XHTML 1.1//EN
"
"
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
"
>
<
script runat
=
"
server
"
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
string
callback
=
this
.ClientScript.GetCallbackEventReference(
this
,
"
this.value
"
,
"
ProcessReverse
"
,
null
);
this
.TextBox1.Attributes.Add(
"
onchange
"
, callback);
}
string
ICallbackEventHandler.RaiseCallbackEvent(
string
eventArgument)
{
char
[] chars
=
eventArgument.ToCharArray();
Array.Reverse(chars);
return
new
string
(chars);
}
</
script
>
<
html xmlns
=
"
http://www.w3.org/1999/xhtml
"
>
<
head id
=
"
Head1
"
runat
=
"
server
"
>
<
title
>
Untitled Page
</
title
>
</
head
>
<
body
>
<
form id
=
"
form1
"
runat
=
"
server
"
>
<
div
>
<
asp:TextBox ID
=
"
TextBox1
"
Runat
=
"
server
"
></
asp:TextBox
>
</
div
>
</
form
>
</
body
>
</
html
>
<
script
>
function ProcessReverse(result,context)
{
alert(result)
document.all.TextBox1.value
=
result;
}
</
script
>
查看全文
相关阅读:
让x86的android模拟器能模拟arm架构系统
婴儿补充微量元素
asterisk 能打电话的配置
SIP协议错误代码大全
asterisk错误排查
asterisk帮助与国内论坛
win10 只要打开文件对话框就卡死解决方法
分享到朋友圈实现
跳转前暂停几秒js如何实现
Github css加载失败,样式混乱解决办法
原文地址:https://www.cnblogs.com/goodspeed/p/35796.html
最新文章
SQL Server R2 2008中的SQL Server Management Studio 阻止保存要求重新创建表的更改问题的设置方法
Microsoft.Data.ConnectionUI.DataConnectionDialog
Oracle中Blob和Clob类型的区别与操作
JSON格式转换成XML格式
数据库----索引的概念及创建
C# 字符串加密解密方法
ASP.NET多次点击提交按钮以及Session超时和丢失过期问题
OBjective-C:在可变数组NSMutableArray中添加相同对象后,进行自定义的排序方式输出
Objective-C:NSDectionary字典的常见操作
Objective-C:NSMutableArray类的常见操作
热门文章
Objective-C:NSArray的常见操作
Java:java+内存分配及变量存储位置的区别
Objective-C:NSValue类的常见用法
Objective-C:NSNumber类的常见用法
Objective-C:NSMutableString类的常见操作
Objective-C:NSString类的常见用法
Objective-C:Foundation框架
Xmpp integration with Asterisk
android 国内sdk下载地址及代理, android 环境搭建
介绍两个Eclipse插件: Implementors & Call Hierarchy
Copyright © 2011-2022 走看看