Displaying Images in table

bharanidharanit

Well-known member
Joined
Dec 8, 2008
Messages
53
Location
India
Programming Experience
1-3
Hello,
I am using visual webdeveloper 2008
I am trying to display an image in a table with a master page.
But my image is being displayed during designtime but not displayed during run time.
I used the coding below.
VB.NET:
<form id="form1" runat="server">
    <div>
    
        <table  style="width: 100%; height: 548px;" >
        
            <tr >
                <td class="style2" colspan="3" 
                    style="border: thick groove #808000; padding: 2px; background-image: url('App_Data/2.jpg');">
                </td>
            </tr>
</table>
</div>
</form>
 
Last edited:
App_Data is only used for storing the Database Files..

You could do this one
Add a Folder Called Images in then add the files to there and call the method as
VB.NET:
<table  style="width: 100%; height: 548px;" border="2" >
        
            <tr >
                <td class="style2" colspan="3"  runat="server"
                    style="border: thick groove #808000; padding: 2px; background-image: url('Images/Zapotec.bmp');">
                </td>
            </tr>
</table>
 
Back
Top