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
narasiman rao
NA
519
769k
how to get the gridview cell value in asp.net
Feb 29 2016 2:10 AM
Gridview as follows
Link Course Code Days Startdt Enddt
Click here ASM CC 5 10 May 2015 15 May 2015
21 May 2015 25 May 2015
When i click the link button in gridview i want to get Course(ASM) for that i written code as follows
protected void LinkButton2_Click(object sender, EventArgs e)
{
for(int i= 0; i < gvRank.Rows.Count; i++)
{
string Course = gvRank.SelectedRow.Cells[1].Text;
Session["course"] = Course;
{
Response.Redirect("Eligibility.aspx");
}
}
}
But When i debug and check in below line as follows
string Course = gvRank.SelectedRow.Cells[1].Text;
In the above line course name is not retrived.
please help me what is the problem in my above code
Reply
Answers (
2
)
why u used interface in your project?
Find path based on exe name c#