vivekcse1
asked on
gif image not displayed in ASP.NET web page table cell
When i use img tag in ASP.NET table cell, the image is not being displayed when I run the code.
However, the image is displayed if I paste the same code in a text file and change the extension to htm.
If I am doing something wrong then how do we generally create a page in ASP.Net so that the image is displayed in the web page (with image in a html table cell).
However, the image is displayed if I paste the same code in a text file and change the extension to htm.
If I am doing something wrong then how do we generally create a page in ASP.Net so that the image is displayed in the web page (with image in a html table cell).
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Yahoo My Page</title>
</head>
<body>
<table style="width: 100%;" border="1";>
<tr>
<td><img src="C:\Users\vivek\Desktop\html_practice\yahoo\yahooimages\ma_mail_1.gif" alt="ma_mail_1.gif"/></td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
using server control asp:image
<asp:image id="image1" runat="server" imageurl="~/images/mail.co
but my advice pl copy that image in application then use it. because these url not work in client machine or another machine
thanx
i changed slash (/) this correct code
Open in new window