How To Display image dynamically in asp.net
<p>I have a Folder which consists of number of images. Initially have to load the first image from that folder in a page. when user click the first image it should display the second image where it will have next link for the third image. when the user click the next link now then it should display third image where it will have next link for fourth image and previous link for third image where it should repeat upto the end of the image.</p>

<p>Can any one tell me how can i display images one by one by passing query string value to the images and how to change the link dynamically for the images</p>

<h3>Update:</h3>

<p>Intially i want to load the first file without passing query string, with the first file there should have next file link. Once the next link button is clicked then only have to pass the query string.</p>

<p>how to pass the query string from second file to end of the file,</p>

<pre><code>    DirectoryInfo oImageFolderInfo = new DirectoryInfo(this.ImagePath);
    FileInfo[] oFileList = oImageFolderInfo.GetFiles("*.*");


    string fileName=string.Empty;

   if (Request.QueryString["filename"] != null)
    {
        fileName=(Request.QueryString["filename"]);

    }

    else
    {
        fileName = oFileList[0].Name;
    }

    HtmlImage imag = new HtmlImage();
    imag.Src = Url + fileName;


    HtmlAnchor nextAnchor = new HtmlAnchor();
   nextAnchor.Href=??
    nextAnchor.InnerText = "Next&gt;&gt;";

    HtmlAnchor prevAnchor = new HtmlAnchor();
    prevAnchor.Href=??
</code></pre>

<p>How to proceed this same upto reaching the end of the file?</p>
