Show image in a table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zeeshanks
    New Member
    • Dec 2007
    • 26

    Show image in a table

    Hello,

    I have the following table. Now, in the Image column i want to add an image for each row. How can i do it? Can anyone please help in this:


    Code:
    <asp:table id="Table3" style="Z-INDEX: 102; LEFT: 50px; POSITION: absolute; TOP: 476px" runat="server" Height="28px" Width="689px" Font-Size="Medium" GridLines="Both" Font-Names="Calibri">
    
    <asp:TableRow>
    
    <asp:TableCell BackColor="White" ForeColor="Black" Width="90px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" BorderColor="White" Text="Item Id"></asp:TableCell>
    
    <asp:TableCell Width="120px" Font-Names="Calibri" Font-Bold="True" Text="Title"></asp:TableCell>
    					
    <asp:TableCell Width="65px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" Text="Author"></asp:TableCell>
    					
    <asp:TableCell Width="80px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" Text="Price"></asp:TableCell>
    					
    <asp:TableCell Width="80px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" Text="Image"></asp:TableCell>
    					
    </asp:TableRow>
    </asp:table>
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What have you tried so far?


    Originally posted by zeeshanks
    Hello,

    I have the following table. Now, in the Image column i want to add an image for each row. How can i do it? Can anyone please help in this:


    Code:
    <asp:table id="Table3" style="Z-INDEX: 102; LEFT: 50px; POSITION: absolute; TOP: 476px" runat="server" Height="28px" Width="689px" Font-Size="Medium" GridLines="Both" Font-Names="Calibri">
    
    <asp:TableRow>
    
    <asp:TableCell BackColor="White" ForeColor="Black" Width="90px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" BorderColor="White" Text="Item Id"></asp:TableCell>
    
    <asp:TableCell Width="120px" Font-Names="Calibri" Font-Bold="True" Text="Title"></asp:TableCell>
    					
    <asp:TableCell Width="65px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" Text="Author"></asp:TableCell>
    					
    <asp:TableCell Width="80px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" Text="Price"></asp:TableCell>
    					
    <asp:TableCell Width="80px" Font-Names="Calibri" Font-Bold="True" HorizontalAlign="Center" Text="Image"></asp:TableCell>
    					
    </asp:TableRow>
    </asp:table>

    Comment

    • zeeshanks
      New Member
      • Dec 2007
      • 26

      #3
      Hello,

      I 'm already inserting in the other columns and i have the image path (http://localhost/images/small/logo.jpg) which is also being inserted in the Image column but i dont know how it can be displayed.





      [CODE]
      Originally posted by Frinavale
      What have you tried so far?

      Comment

      • kunal pawar
        Contributor
        • Oct 2007
        • 297

        #4
        Image can display using Image control or using .aspx page having content type image

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Please take a look at the Image Class. This link contains a bunch of walkthroughs and tutorials that will help you understand how to use the Image Control.

          -Frinny

          Comment

          • zeeshanks
            New Member
            • Dec 2007
            • 26

            #6
            I 'm still not able to show the image in the table. It only shows the link of the image.

            Do i need to change the "Image" Column type in the table declaration in HTML section of the form?




            Originally posted by Frinavale
            Please take a look at the Image Class. This link contains a bunch of walkthroughs and tutorials that will help you understand how to use the Image Control.

            -Frinny

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              Originally posted by zeeshanks
              I 'm still not able to show the image in the table. It only shows the link of the image.

              Do i need to change the "Image" Column type in the table declaration in HTML section of the form?
              Please post your code again.
              I'm not sure why you'd be getting a link instead of an image if you're using an Image control...I have to see what you're doing.

              -Frinny

              Comment

              Working...