社区
Ajax
帖子详情
如何不使用ajax.net等框架,在visual studio 2005中实现Ajax?
lne818
2006-05-30 10:07:53
只是这么问一下,因为我看java版本也没有用什么工具呀
也实现了功能?
怎么asp.net都要用ajax.net altas等工具?
谁能帮我解释一下啊,谁能给我一个解决方案
实现的话,明天早上结贴
...全文
413
11
打赏
收藏
如何不使用ajax.net等框架,在visual studio 2005中实现Ajax?
只是这么问一下,因为我看java版本也没有用什么工具呀 也实现了功能? 怎么asp.net都要用ajax.net altas等工具? 谁能帮我解释一下啊,谁能给我一个解决方案 实现的话,明天早上结贴
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
11 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lih163
2006-07-23
打赏
举报
回复
战位
yuesongboy
2006-06-02
打赏
举报
回复
你说的ajax框架都是.js和服务器端组件一起用的
ajax也有纯javascript的呀
http://dhtmlnirvana.com/ajax/ajax_tutorial/
https://compdoc2cn.dev.java.net/prototype/html/prototype.js.cn.html
http://prototype.conio.net/
http://www.openrico.org/
pli0825
2006-06-01
打赏
举报
回复
客户端代码:
<script language="javascript">
function InitAjax()
{
var httpAjax = null;
try
{
httpAjax = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e1)
{
try
{
httpAjax = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e2)
{
}
}
if(!httpAjax && XMLHttpRequest != 'undefined')
{
httpAjax = new XMLHttpRequest();
}
return httpAjax;
}
function add_num(num1obj,num2obj,sumobj)
{
var t1 = num1obj.value;
var t2 = num2obj.value;
var ajax = InitAjax();
var topost = "t1=" + t1 + "&t2=" + t2;
ajax.open("POST","WebForm2.aspx",true);
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(topost);
ajax.onreadystatechange = function()
{
if (ajax.readyState == 4 && ajax.status == 200)
{
//var inde = ajax.responseText.indexOf('<!DOCTYPE HTML');
//str = ajax.responseText.substr(0,inde);
sumobj.innerHTML += ajax.responseText+"<br>";
}
}
}
</script>
WebForm2.aspx的后台cs代码:
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
int t1 = Convert.ToInt32(Request["t1"]);
int t2 = Convert.ToInt32(Request["t2"]);
int total = t1 + t2;
Response.Write(total);
}
就这么点。不需要任何框架的。
别人说用框架可能是更容易开发吧。
wangchunlan2004
2006-06-01
打赏
举报
回复
我看ajax.net可以直接使用服务器端cs里的某个方法,这个是怎么实现的,能否讲解下?
pli0825
2006-05-31
打赏
举报
回复
声明:我也是在asp.net环境下写的
pli0825
2006-05-31
打赏
举报
回复
不需要用阿。我写ajax就什么都没用。只是xmlHTTP,xmlHttpRequest对象而已。其他的都没用刀
dam520
2006-05-31
打赏
举报
回复
用XMLHttpRequest就可以了
捏造的信仰
2006-05-31
打赏
举报
回复
不用就不用。
cat_hsfz
2006-05-30
打赏
举报
回复
ASP.NET 2.0内置一个轻量级的AJAX解决方案,就是Callback,详细你可以自己看ICallbackEventHandler在MSDN中的说明。Callback能够自动识别客户端是否支持XMLHttpRequest,如果不支持就使用隐藏IFrame进行Postback。
我也抗拒Ajax.NET,但是觉得Atlas非常好用,建议你去试一下。
tttriangle
2006-05-30
打赏
举报
回复
GetCallbackEventReference
lne818
2006-05-30
打赏
举报
回复
说明一下:不是什么responseText 或者服务器上的xml文件之类
是通过从客户端的条件检索返回的。
ASP
.NET
3.5
AJAX
+
Visual
studio
2008 web 系统开发完美演绎1
ASP
.NET
3.5
AJAX
+
Visual
studio
2008 web 系统开发完美演绎 夏玮 源代码
ASP
.NET
3.5
AJAX
+
VISUAL
STUDIO
2008 WEB系统开发完美演绎.pdf
ASP
.NET
3.5
AJAX
+
VISUAL
STUDIO
2008 WEB系统开发完美演绎.pdfASP
.NET
3.5
AJAX
+
VISUAL
STUDIO
2008 WEB系统开发完美演绎.pdf
ASP
.NET
AJAX
安装(VS
2005
下安装)
用于VS
2005
网站的开发
中
提供了
AJAX
技术
ASP
.NET
AJAX
框架
ASP
.NET
AJAX
框架
安装文件 Welcome to the ASP
.NET
AJAX
Control Toolkit! Included in this package: *
Ajax
ControlToolkit - A set of sample ASP
.NET
AJAX
controls and source * SampleWebsite - A web site that demonstrates how to use the controls and contains the rest of the Toolkit documentation * ToolkitTests - A web site that contains automated tests for all controls *
Ajax
ControlExtender - A VSI installer that will install templates onto your machine to enable creation of new ASP
.NET
AJAX
extender controls using
Visual
Studio
2005
To get started, simply load the "
Ajax
ControlToolkit.sln" solution in
Visual
Studio
2005
, and run the solution. This will launch the web site and allow you to experiment with the different controls. Also included in the solution is the source code for all the controls. The web site also contains walkthroughs covering: * Setting up your machine to use control extenders * Using control extenders with your ASP
.NET
web site * Creating new control extenders * Writing your own automated tests Please open the sample web site or http://
ajax
.asp
.net
/
ajax
toolkit/ for more details!
利用
ajax
实现
注册页面 asp
.net
技术(C#) 用
visual
studio
2005
+ sqlserver 2000
实现
包含数据库和源代码
此为利用
ajax
技术
实现
的一个简单注册,利用的是c# asp
.net
技术 坏境用的是
visual
studio
2005
+ SqlServer 2000 包含数据库及源代码 希望对大家有帮助
Ajax
52,782
社区成员
25,335
社区内容
发帖
与我相关
我的任务
Ajax
Web 开发 Ajax
复制链接
扫一扫
分享
社区描述
Web 开发 Ajax
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章