Tech
Forums
Jobs
Books
Events
Live
Learn
More
Training
Career
Members
Videos
News
Blogs
Interviews
Login
Sign Up
Ask Question
2
Reply
GridView Cell value cannot fetch
Bineesh VP
Jun 17 2016 7:56 AM
284
Reply
Sir,
I am in a ASP.NET project. I stuck in code piece to fetch GridView cell value into a variable. Data being fetched from database in page load(if !PostBack). then all cell value become null when come to the RowCommand event. why that happening?
Here the code:-
int
EmpID =
C
onvert
.
ToInt32(((
GridViewRow
)(((LinkButton)e.CommandSource).NamingContainer)).Cells[1].Text);
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to bind data in gridview using outlook mails
Rotativa pdf doesn't work when published to Azure Server