piya p

piya p

  • NA
  • 84
  • 47.9k

How to remove spacing between image button in datalist

Apr 17 2014 3:49 AM
I am using following code for showing images in datalist.

By using this code there is gap between two images.How to remove that gap?



<asp:DataList ID="dtlist" RepeatDirection="Horizontal" RepeatColumns="5" AlternateText=" " runat="server" Height="102px" Width="229px" CellPadding="5" >
<ItemTemplate >

<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%# Eval("col1") %>' Height="150" Width="150" AlternateText=" " OnClick="ImageButton1_Click" CommandName="imgClick" />
<br />
<asp:label ID="txt1" runat="server" Text='<%# Eval("col2") %>' />
<asp:Button ID="edit" runat="server" Text="Edit" Height="30" Width="40" AlternateText=" " OnClick="edit_click" CausesValidation="True" />
</ItemTemplate>
<AlternatingItemTemplate></AlternatingItemTemplate>
</asp:DataList>





Answers (1)