Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<asp:DataList ID="DataList1" runat="server" BackColor="Gray" BorderColor="white"
BorderStyle="None" BorderWidth="0" CellPadding="10" CellSpacing="12"
Font-Names="Verdana" Font-Size="Small" GridLines="Both" RepeatColumns="4" RepeatDirection="Horizontal"
Width="600px">
<footerstyle backcolor="#F7DFB5" forecolor="#8C4510">
<HeaderStyle BackColor="#333333" Font-Bold="True" Font-Size="Large" ForeColor="White"
HorizontalAlign="Center" VerticalAlign="Middle" />
<HeaderTemplate>
Product Detail</HeaderTemplate>
<itemstyle backcolor="White" forecolor="Black" borderwidth="2px">
<itemtemplate>
<asp:HyperLink ID="HyperLink1" runat="server" PostBackUrl='<%#"WebForm3.aspx?PName="+ Bind("ProductName") %>'>
<asp:Image ID="imgProd" runat="server" Width="250px" Height="150px" ImageUrl='<%# Bind("ImageUrl") %>' style="padding-left:40px"/>


Product Name:
<asp:Label ID="lblPName" runat="server" Text='<%# Bind("ProductName") %>'>



Price:
<asp:Label ID="lblName" runat="server" Text='<%# Bind("Price") %>'>


Description:
<asp:Label ID="lblDes" runat="server" Text=' <%# Bind("Description") %>'>



<asp:Label ID="lblPID" runat="server" Visible="false" Text='<%# Bind("ProductID") %>'>



<asp:Label ID="lblCID" runat="server" Visible="false" Text='<%# Bind("CategoryID") %>'>






Sir,I m creating online shopoping in asp.net.i have already display product items in datalist
and Now How to Display Particular Product Images and detail When i will click On product Image
Posted
Updated 1-Jul-14 23:14pm
v2
Comments
Prasad Avunoori 1-Jul-14 23:15pm    
Put that image in hyper link then pass the query string to another page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900