1
我是新來的Ajax。我已經用在AjaxPro的ASPX頁面執行方法。我已經用下面的代碼爲.NET 2.0爲AjaxPro的.NET
在ASPX:
$(function() {
$("#sortable").sortable({
placeholder: "ui-state-highlight",
update: function(event, ui) {
var order = $('#sortable').sortable('serialize');
var retStr = SortTest.Save(order);
}
});
$("#sortable").disableSelection();
});
</script>
在CS文件:
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using Ajaxpro;
public partial class SortTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
AjaxPro.Utility.RegisterTypeForAjax(typeof(SortTest));
}
[AjaxPro.AjaxMethod]
public string Save(string corder)
{
return "Test";
}
}
其工作正常,但是當我使用.NET 1.1(AjaxPro.JSON.dll),它不工作,即使我沒有得到如何register.Plz做幫助我的AjaxPro的。 NET1.1。