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
Reylin Mathew
NA
347
76.1k
how to get multiple datakeys in gridview using button click
Jan 18 2019 12:34 AM
I have a gridview with 2 datakeysname ie date and day.
This is my code :
foreach (GridViewRow row in gvCalenderData.Rows)
{
int date =Convert.ToInt32(gvCalenderData.DataKeys[row.RowIndex].Values[0].Tostring);
Session["cal_date"] = date;
string day = gvCalenderData.DataKeys[row.RowIndex].Values[1].ToString();
Session["cal_day"] = day;
}
but i got this type of error ''
Input string was not in a correct format.
''
Reply
Answers (
1
)
How to convert true/false to yes/no in grid view column?
how i can implement FCM into Mvc Asp.net