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
Andrew Van
NA
1
0
Passing Gridview Values to Session
Nov 9 2009 10:10 AM
Hi, I need some serious help with this one. I have a gridview and it finds all the records associated with a given user, i want to extract one cell(QueryID) to session and have a gridview reference this session variable in another page. I have no code in the second page and very little in the first page. Does anyone have any ideas on where i can get started? thanks in advance protected void Page_Load(object sender, EventArgs e) { string username = Session["UserName"].ToString(); TextBox1.Text = username; } protected void CloseButton_Click(object sender, EventArgs e) { } protected void MessageButton_Click(object sender, EventArgs e) { Response.Redirect("AddMessage.aspx"); } protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { Session["QueryID"] = GridView1.SelectedRow.Cells[0]; }
Reply
Answers (
1
)
Read data from PLC DL 06 in c#
Menu control :how to add new menu at runtime