Click here to Skip to main content
16,022,750 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi

I take one Datalist control in which i take on Image tag now i want to click on that image and display all the detail associated with it so how can i do it

My code is as follows:

XML
<asp:DataList
        ID="dlMen"
        runat="server"
        DataSourceID="srcMen"
        RepeatColumns="4" Width="911px"  >

       <ItemTemplate>



           <asp:Image
               ID="ImgDisplay"
               runat="server"
               ImageUrl='<%#Eval("Product_ID","~/Display.aspx?Product_ID={0}") %>'
               Width="175" />

               <br /><br />

           <asp:Label
               ID="lblName"
               runat="server"
               Text='<%#Eval("Item_Name") %>' Font-Size="Smaller" Font-Bold="True" ></asp:Label>

               <br />

           <asp:Label
               ID="lblPrice"
               runat="server"
               Text='<%#Eval("Price") %>'></asp:Label>

       </ItemTemplate>

    </asp:DataList>
Posted

1 solution

Where to display?
mention where to display
 
Share this answer
 
Comments
Maciej Los 10-Mar-13 6:41am    
If you have any question or comment, use "Have a Question or Comment" widget. So... this is not an answer, please, remove it.

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