利用JQuery 結合 Ajax 取值

  • 4271
  • 0
  • 2012-02-20

摘要:利用JQuery 結合 Ajax 取值

1.引用 jQuery.js



2.加入 javascript Function

 


3. 在aspx中加入按鈕與TextBox

        
        
    

 4. .cs

using System.Web.Services;
using System.Web.Script.Services;

[WebMethod]
        public static string GetAjaxValue() {

         return "取得Ajax值";

         }