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
>
查看全文
相关阅读:
将多个字典添加到数组输出
获取字典中的数组
数组内的元素排序
1字符串中的world替换为i bookan wisdom2.字符串的相加字符串输出,长度3比较字符串大小4截取字符串5字符串内所有a都替换成A6判断字符串是否以http开头7将字符串内admin和123截取出来8字符添加
判断是否有前缀后缀
截取字符串
大小写
数据存字典,block排序,删除
block排序
描述器 排序(根据属性)
原文地址:https://www.cnblogs.com/goodspeed/p/35796.html
最新文章
计算机硬件相关知识
git(macOS)
python 学习
shell学习
c++
flask
apache2.2升级2.4 及编译时常见问题
开源堡垒机系统Teleport
SVN遇到Can't convert string from 'UTF-8' to native encoding
linux使用aapt获取包名
热门文章
Centos 6 安装Python3
linux服务器间共享文件--NFS
SVN钩子hooks使用
fastdfs上传失败报错No space left on device
nginx热升级SOP(MT)
mosquitoo + websocket部署测试
IOS4期考核题
10个类型的小题
字符串覆盖
数据存储字典形式,并以字符串输出
Copyright © 2011-2022 走看看