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
siva sharma
NA
2
4.1k
Transfer gridview data to another page in Asp .Net
Jan 2 2013 1:16 PM
Sir
I have a grid view which is populated from a database table.I have added a hyperlink to it to transfer the row data to another page but it is not working i am using the following code
first page
<asp:hyperlinkfield datatextfield="Train_Name" datanavigateurlformatstring="Booking.aspx?&Train_Number={0}
&Train_Name={1}&Train_Source={2}&Train_Destination={3}&Train_Arraival_Time={4}&Train_Departure_Time={5}&Price={6}&Seats_Available={7}"
its not working please suggest.
second page
in page load
string s0 = Request.QueryString["Train_Number"];
string s1 = Request.QueryString["Train_Name"];
string s2 = Request.QueryString["Train_Source"];
string s3 = Request.QueryString["Train_Destination"];
string s4 = Request.QueryString["Train_Arraival_Time"];
string s5 = Request.QueryString["Train_Departure_Time"];
string s6 = Request.QueryString["Price"];
string s7 = Request.QueryString["Seats_Available"];
Label2.Text = s0;
Label4.Text = s1;
Label6.Text = s2;
Label8.Text=s3;
Label10.Text=s4;
Label12.Text=s5;
Label14.Text=s6;
Label16.Text = s7;
Reply
Answers (
1
)
open hard drive files and open,delete,rename and upload file
checkbox and checkboxlist