Imagebutton not display image
<p>once i click button, my image1 will display an image;</p>

<p>when i set my imagePath to </p>

<pre><code>Server.MapPath("~/SME IMAGE/anonymous_avatar.gif");
</code></pre>

<p>my url not work</p>

<p>but when i set my path to </p>

<pre><code>"~/SME IMAGE/anonymous_avatar.gif"
</code></pre>

<p>my url work</p>

<p>so basically what happen to my Server.MapPath?</p>

<pre><code>    try
    {

        string imagePath = Server.MapPath("~/SME IMAGE/anonymous_avatar.gif");
        Image1.ImageUrl = imagePath;
        Response.Write("success");
    }
    catch (Exception ex)
    {
        Response.Write(ex.Message.ToString());
    }
</code></pre>
