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
>
查看全文
相关阅读:
收藏篇基础命令
itchat+图灵机器人实现python登录微信并自动回复
四级物理实验
天行数据网易云热评接口python脚本模板运行出错||socket.gaierror: [Errno 11001] getaddrinfo failed
每日一道: 两数之和 简单
每日一道:求和
每日一道:四数之和
每日一道:最接近的三数之和
每日一道:盛最多水的容器
MySQL中GRANT和IDENTIFIED同时使用时出现near 'IDENTIFIED BY...” at line 1错误
原文地址:https://www.cnblogs.com/goodspeed/p/35796.html
最新文章
node.js 下载、安装、环境配置
windows系统的mysql修改了datadir后无法启动的问题解决办法
EL表达式
IDEA中, web项目的img标签src的路径问题及静态资源加载路径问题
idea中Junit的使用 第二版
IDEA java: 错误: 无效的源发行版:16
java中,需要使用到编码与解码的情景
[IDEA]中 javaweb的web.xml文件报错:Invalid content was found starting with element等错误
一招解决IDEA启动慢的困扰
吴世枫老师指导下的团队作业—系统设计和任务分配
热门文章
彻底理解cookie,session,token
php过滤敏感词库算法
js时间戳转日期
原生php连接使用mysql
php加载配置文件类
我的掘金博客
子工程maven打JAR包,包内缺少BOOTINF目录解决办法
springboot手动开启事务
mybatisplus 实现真实批量插入
收藏篇技巧篇
Copyright © 2011-2022 走看看