include button into .cs file
<p>I'm trying to read a text file containing the name of the image, and display it opon pageload.</p>

<p>Let's say that the content in the text file is </p>

<pre><code>Australia    Picture101
Singapore    Picture201
</code></pre>

<p>Following is the code i tried and it does not display the image.</p>

<pre><code>tableString += "&lt;table class='content_background'  cellpadding='0' cellspacing='0'&gt;";
        foreach (string line in lines)
        {   
            string[] country = line.Split(token2);
            string[] image = country[1].Split(token);
            string row = "&lt;tr&gt;&lt;td class='left_content'&gt;" + country[0] + "&lt;/td&gt;" +"&lt;td&gt;&lt;table&gt;&lt;tr&gt;";

            tableString += row;
            for (int i = 0; i &lt; image.Length; i++)
            {
---&gt;            string row2 = "&lt;td class='right_content'&gt; &lt;asp:ImageButton ImageUrl='~/img/missing children pictures/" + "image[i]" + ".jpg'/&gt;" + "&lt;/td&gt;";

                tableString += row2;
            } 

            tableString += "&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;";
        }

        tableString += "&lt;/tr&gt;&lt;/table&gt;";

        container.InnerHtml = tableString;
</code></pre>

<p>Is there any other way to do this ? Thanks in advance. </p>

<p>the screen shot is as follow
<img src="http://i.stack.imgur.com/L0Y4V.png" alt="screen shot"></p>
