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
Vikas Ahlawat
NA
564
817.9k
How to pass gridview row data to next page?
Dec 2 2010 7:39 AM
I m using gridview (TemplateField) and in it i have bind data using Eval, i have taken a selectbutton on it , now i want to show this perticular row data in next page. how can i do that?
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" Width="700px">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<%--<table width="100%">
<tr style="background:blue; color:white; font-weight:bold; " >
<td colspan="7">£ <%#Eval("TotalPrice") + " Total"%>
</td>
</tr>
<tr>
<td>
<%#Eval("Leg1DepDate")%>
</td>
<td>
<%#Eval("Leg1DepTime")%>
</td>
<td><%#Eval("tFrom")%>
</td>
<td>
</td>
<td>
</td>
<td><%#Eval("Leg1AvlCarrier")+""+ Eval("Leg1FltNo1")+" / "+Eval("Leg1FltNo2")%>
</td>
<td>
</td>
</tr>
<tr>
<td><%#Eval("Leg1ArrDate")%>
</td>
<td><%#Eval("Leg1ArrTime")%>
</td>
<td><%#Eval("tTo")%>
</td>
<td>
</td>
<td>
</td>
<td>via <%#Eval("Leg1Via1")%>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td><%#Eval("AirlineName")%>
</td>
<td>
</td>
<td>
</td>
<td>Duration <%#Eval("Leg1ElaspedTime")%>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/images/AirlineLogo/" +Eval("AirlineLogo5045")%>' />
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td><asp:ImageButton ID="ImageButton2" runat="server" ImageUrl='<%# "~/images/AirlineLogo/" +Eval("AirlineLogo5045")%>' />
</td>
</tr>
</table>--%>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Reply
Answers (
3
)
Point of Sales
System.Linq.Strings is inaccessible due to its protection level