Last post Aug 18, 2016 04:28 PM by a2h
Member
131 Points
272 Posts
Aug 18, 2016 03:49 PM|asp.net4|LINK
I am trying to set image and text in same line in link-button.
I have tried below code but it didn't work.
<asp:LinkButton ID="btnstore" runat="server" CssClass="btn btn-default" Text=""> <span style="vertical-align: middle;"> <asp:Image ID="Image4" Height="20px" ImageUrl="https://s4.postimg.org/jfbudaitp/Hangar_50.png" runat="server" /> Store</span> </asp:LinkButton>
All-Star
50831 Points
9895 Posts
Aug 18, 2016 04:28 PM|A2H|LINK
asp.net4 I have tried below code but it didn't work.
Your code is working fine in my sample application. If you are using the control inside a container control like gridview or div, then increase the width of it.
See the working demo of rendered output
Member
131 Points
272 Posts
display image and text in same line
Aug 18, 2016 03:49 PM|asp.net4|LINK
I am trying to set image and text in same line in link-button.
I have tried below code but it didn't work.
All-Star
50831 Points
9895 Posts
Re: display image and text in same line
Aug 18, 2016 04:28 PM|A2H|LINK
Your code is working fine in my sample application. If you are using the control inside a container control like gridview or div, then increase the width of it.
See the working demo of rendered output
Aje
My Blog | Dotnet Funda