How to upload and save a image into the server without refreshing the entire page
<p>Kindly help me with a solution to upload a image and display it client side. Simultaneously, I need to save the image in server without refreshing the entire page since, other controls are created dynamically using java script which will disappear when the entire page gets refreshed.</p>

<p>Solution Found: </p>

<pre><code>&lt;div&gt;
&lt;asp:DataList ID="dtlist" runat="server" RepeatColumns="4" CellPadding="5"&gt;
&lt;ItemTemplate&gt;    
&lt;div id="divImage" runat="server" onclick="Test()" class="draggable"&gt;
&lt;asp:Image Width="100" ID="Image1" ImageUrl='&lt;%# Bind("Name", "~/MyImages/{0}") %&gt;' runat="server" /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;asp:HyperLink ID="HyperLink1" Text='&lt;%# Bind("Name") %&gt;' NavigateUrl='&lt;%# Bind("Name", "~/MyImages/{0}") %&gt;' runat="server"/&gt;
&lt;/ItemTemplate&gt;
&lt;ItemStyle BorderColor="Brown" BorderStyle="dotted" BorderWidth="3px" HorizontalAlign="Center"
VerticalAlign="Bottom" /&gt;
&lt;/asp:DataList&gt;
&lt;/div&gt;

protected void BindDataList()
{
    DirectoryInfo dir = new DirectoryInfo(MapPath("MyImages"));
    FileInfo[] files = dir.GetFiles();
    ArrayList listItems = new ArrayList();
    foreach (FileInfo info in files)
    {
    listItems.Add(info);
    }
    dtlist.DataSource = listItems;
    dtlist.DataBind();

}
</code></pre>
