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
Abhijit barua
1.2k
508
310k
jquery set label value within datalist
Jun 22 2012 9:26 AM
i try like below...plz help me.
<script type="text/javascript">
$(document).ready(function () {
$("#getData").click(function () {
// var table = $("#tableID").show();
// table.find("tr+tr").remove();
$.ajax({
url: "WebService.asmx/GetStudents",
data: "{}",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function (data) {
$(data.d).each(function (index, item) {
for (var i = 0; i < data.d.length; i++) {
// here how to write to set label value using jquery
// $('#<%= DataList1.FindControl("Label3").ClientID %>').text(item.Id);
// $('#<%= DataList1.FindControl("Label4").ClientID %>').text(item.name);
};
});
},
error: function (a, b, c) {
}
});
});
});
</script>
Reply
Answers (
2
)
Can we hold object in ViewState
how to show xml file in webpage.