Image With Asp.Net Web Application
<p>I have a problem with Images I have a image which is at root directory like “C:\Mh\mahesh1” and tried to upload by following ways but won’t works.</p>

<pre><code>Defaults.aspx.cs 
namespace UITI
{
  public partial class _Default : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
        string img = MapPath("~Mh/mahesh1.jpg");
        myimages.ImageUrl = img;
    }
   }
 }

 Defaults.aspx
 &lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"           Inherits="UITI._Default" %&gt;

 &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

 &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
 &lt;head runat="server"&gt;
 &lt;title&gt;Untitled Page&lt;/title&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;form id="form1" runat="server"&gt;
 &lt;div&gt;
 &lt;asp:Image ID="myimages" runat="server"  BorderStyle="Double" /&gt;
 &lt;/div&gt;
 &lt;/form&gt;
 &lt;/body&gt;
 &lt;/html&gt;
</code></pre>

<p>I have also tried on Default.aspx.cs page like:</p>

<pre><code>namespace UITI
{
  public partial class _Default : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
        string img = ResolveClientUrl ("~/Mh/mahesh1.jpg");   
        myimages.ImageUrl = img;
    }
  }
 }
</code></pre>

<p>How to do?.</p>
