Datalist itemcommand design?
<p>in my application i am using datalist to display the images, i put properties of repeatcolumn=4 and reapeatdirection=horizontal. It is displaying good when there r more than or 4 images if there r only one or two or three images the gap between images r too long. if i have only one image the image displayed in datalist in the middle of the datalist. how can i solve this problem. i think you people understand my problem this is my datalist source code... datalist width="100%"</p>

<p> </p>

<pre><code>              &lt;ItemTemplate &gt;

                  &lt;table width="100%" &gt;

                    &lt;tr&gt;
                       &lt;td  &gt;

                          &lt;asp:ImageButton ID="imgeFrien" runat ="Server" Width="110px" Height ="100px" CommandName ="Image" CommandArgument ='&lt;%# Eval("userid") %&gt;' ImageUrl ='&lt;%# "~/Userimages/"+ Eval("myimage") %&gt;' /&gt;
                       &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                       &lt;td &gt;
                          &lt;asp:Label ID="lblFrieNam" runat ="Server" Font-Names ="verdana"  Text ='&lt;%# Eval("username") %&gt;'&gt;&lt;/asp:Label&gt; 
                       &lt;/td&gt;
                    &lt;/tr&gt;
                  &lt;/table&gt;
               &lt;/ItemTemplate&gt;
           &lt;/asp:DataList&gt;
</code></pre>

<p><img src="http://yfrog.com/jastackoverp" alt="alt text"></p>

<p><img src="http://img694.imageshack.us/img694/8949/stackover.png" alt="alt text"></p>
