Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to remove spacing between image button in datalist
piya p
Apr 17 2014 3:49 AM
1k
Reply
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>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
CheckBoxList in MVC4
url Tracking