1) <asp:TextBox ID="txtclientName" runat="server" onKeyUp="updateGridOnTextChanged();"></asp:TextBox>
2) function updateGridOnTextChanged() {
var clientName = document.getElementById('<%= txtclientName.ClientID %>').value;
//ajax
var args = clientName;
$.ajax({
type: "POST",
url: "TrackLeads.aspx/updateGridOnTextChanged",
data: "{'args':'" + args + "'}",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (msg) {
}
});
//end of ajax
}
3) [System.Web.Services.WebMethod]
public static string updateGridOnTextChanged(string args)
{
return null;
}
2) function updateGridOnTextChanged() {
var clientName = document.getElementById('<%= txtclientName.ClientID %>').value;
//ajax
var args = clientName;
$.ajax({
type: "POST",
url: "TrackLeads.aspx/updateGridOnTextChanged",
data: "{'args':'" + args + "'}",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (msg) {
}
});
//end of ajax
}
3) [System.Web.Services.WebMethod]
public static string updateGridOnTextChanged(string args)
{
return null;
}
No comments:
Post a Comment