2012-02-21 47 views

回答

1

嘗試這個

function focuslost() { 

      mainForm.StartUpdating(); 
      var pagePath = window.location.pathname; 

      $.ajax({ 
       type: "POST", 
       url: pagePath + "/TextChanged", 
       data: ("{ 'pNTID':'" + $("#<%= txtNTID.txtClientId%>").val()) + "'}", 
       contentType: "application/json; charset=utf-8", 
       dataType: "json", 
       error: function(XMLHttpRequest, textStatus, errorThrown) { 

        mainForm.EndUpdating() 
       }, 
       success: 
           function(result) { 


            if (result.d.length > 0) { 

            } 

            mainForm.EndUpdating() 
           } 
      }); 

     } 



[WebMethod] 
    public static string TextChanged(string pNTID) 
    { 
     retrun ""; 
    } 
相關問題