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;