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
sameer gadade
NA
61
55.6k
java script
May 15 2012 3:10 AM
i want to get value in user control after selecting from grid view i have done it for
textbox ie i got values in text box but unable to get values in user controls
here is sample code.
please help me
function assignValuecomments(rowIndex)
{
//getting value of first cell
document.getElementById("<%=txtCommentsCommentID.ClientID %>").value = document.getElementById("<%=GridViewStudent.ClientID %>").rows[parseInt(rowIndex)].cells[0].innerText
//second cell of gridview
document.getElementById("<%=txtCommentsComment.ClientID %>").value = document.getElementById("<%=GridViewStudent.ClientID %>").rows[parseInt(rowIndex)].cells[1].innerText
//third cell
document.getElementById("<%=txtCommentsAddedOn.ClientID %>").value = document.getElementById("<%=GridViewStudent.ClientID %>").rows[parseInt(rowIndex)].cells[2].innerText
}
Reply
Answers (
1
)
Values Already Exists in the table
CKEditor