Datalist itemcommand design?
Posted
by Surya sasidhar
on Stack Overflow
See other posts from Stack Overflow
or by Surya sasidhar
Published on 2010-03-27T07:26:14Z
Indexed on
2010/03/27
7:33 UTC
Read the original article
Hit count: 287
ASP.NET
hi,
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%"
<ItemTemplate >
<table width="100%" >
<tr>
<td >
<asp:ImageButton ID="imgeFrien" runat ="Server" Width="110px" Height ="100px" CommandName ="Image" CommandArgument ='<%# Eval("userid") %>' ImageUrl ='<%# "~/Userimages/"+ Eval("myimage") %>' />
</td>
</tr>
<tr>
<td >
<asp:Label ID="lblFrieNam" runat ="Server" Font-Names ="verdana" Text ='<%# Eval("username") %>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
© Stack Overflow or respective owner