ajax专家请进

来源:百度知道 编辑:UC知道 时间:2024/06/08 02:58:22
实在是没有办法了,请高手指点:
在VS2005中建了一个页面内容如下:

HTML code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="text2.aspx.cs" Inherits="程序文件 _text2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <script type ="text/javascript" src="../程序文件/js/jquery.js" language ="javascript" ></script> <script type ="text/javascript" src="../程序文件/js/test.js" language ="javascript"></script> <title>无标题页</title> </head> <body> <form id=&q

你这个是什么问题呀,是不是get过去后取不到你所需要的参数呀,那应该就是你$.get()的参数格式问题了,带参数的话应该是这样的写法,
$.get( "../hand/changeCateName.ashx", {cateid: cateId , catename: oldtext, tm: new Date().getTime())

极有可能是ajax中的url错误,你不妨用绝对路径来作测试。