TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vishal singh
NA
55
16.8k
Grid view bind problem using json
Sep 5 2016 6:29 AM
Hello friends i have a cod for binding grid view its working fine when i get value in alert but not appending in grid view
after appending grid view still showing empty
Tell me what i am doing wrong my code given below
function savekeyword() {
$.ajax({
type: "POST",
url: "add-manage-keywords.aspx/savekeyword",
data: "{'category':'" + $("#<%=catdrop.ClientID %>").val() + "','keyword':'" + $("#Text1").val() + "','status':'" + $("#sta").val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (a) {
GetCustomers();
},
});
};
function GetCustomers() {
$.ajax({
type: "POST",
url: "add-manage-keywords.aspx/GetCustomers",
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (result) {
debugger;
$("#gvCustomers").find("tr:gt(0)").remove();
for (var i = 0; i < result.d.length; i++) {
$("#gvCustomers").append("<tr><td>" + result.d[i].keyword + "</td><td>" + result.d[i].category + "</td><td>" + result.d[i].catid + "</td><td>" + result.d[i].status + "</td></tr>");
}
},
error: function (result) {
alert("Error");
}
});
}
Reply
Answers (
1
)
How to pass a jquery Variable as an argument in c# function
3D carousel in UWP windows 10