<script language="javascript" type="text/javascript" src="JScript.js">
function fill()
{
Pages_Default.fill(fill_callback);
}
function fill_callback(res)
{
value = res.value;
if(value != null)
{
document.getElementById("te").style.display = "none";
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="text" id="te" />
<input type="button" id="su" onclick="fill()"/>
</div>
</form>
</body>
</html>public partial class Pages_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Utility.RegisterTypeForAjax(typeof(Pages_Default));
}
[AjaxMethod]
public string fill()
{
return "succ";
}
}怎么总报Pages_Default没有定义啊
function fill()
{
Pages_Default.fill(fill_callback);
}
function fill_callback(res)
{
value = res.value;
if(value != null)
{
document.getElementById("te").style.display = "none";
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="text" id="te" />
<input type="button" id="su" onclick="fill()"/>
</div>
</form>
</body>
</html>public partial class Pages_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Utility.RegisterTypeForAjax(typeof(Pages_Default));
}
[AjaxMethod]
public string fill()
{
return "succ";
}
}怎么总报Pages_Default没有定义啊
解决方案 »
- ++++++++RedirectFromLoginPage可以定向到htm格式的网页吗?
- 后退的时候怎么让GridView的数据不改变呢
- 循环输出的问题
- 工行B2C支付和接收返回的值
- Asp.net能获取客户端的Flash版本吗?
- 请问,freetextbox中是那个方法把输入内容变成为了html代码的?
- 求在asp.net(vb.net)中使用com的源代码?
- 紧急求救:关于DropDownList控件数据邦定问题
- 安装.net 2002后,运行.net,出现"该应用程序无法启动".望解决,谢谢1
- string转换成控件名使用
- 请高手帮我解决问题
- 帮忙看看啊。编译时报错,错误 当前上下文中不存在名称“Request” "Response" "Server"
本文是11月21日在武大做的一个技术讲座之后对在ASP.NET中开发AJAX应用的一个总结,里面涉及到纯JavaScript实现AJAX应用、Prototype、jQuery、AJAXPro及微软AJAX控件库实现,对它们在使用中的需要注意之处加以讲解,并做了一个对比。你的做法参照AJAXPro部分。