Repeater control with multiple columns
VB.NET
<asp:Repeater ID=”rptimages” runat=”server”>
<HeaderTemplate>
<table border=”0″ cellpadding=”5″ cellspacing=”0″ width=”100%” style=”border-spacing: 0px;”>
<tr>
</HeaderTemplate>
<ItemTemplate>
<%#If((Container.ItemIndex <> 0 AndAlso Container.ItemIndex Mod 3 = 0), “</tr><tr>”, String.Empty)%>
<td align=”center”>
<asp:Image ID=”imghotel” class=”cellBorder” runat=”server” Style=”width: 100px; height: 90px;
margin: 0px; padding: 0px;” />
</td>
</ItemTemplate>
<FooterTemplate>
</tr> </table>
</FooterTemplate>
</asp:Repeater>
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Categories
- AngularJs (13)
- ASP.NET (104)
- C Programming (1)
- Code Project (2)
- CodeProject (1)
- Entity Framework (6)
- Ext.NEt (1)
- HTML5 (1)
- Interview .NET (2)
- Introduction (1)
- JQuery (1)
- Linq (1)
- Microsoft office (2)
- MOSS-(Sharepoint 2010) (2)
- MVC (5)
- Outlook (1)
- Sql Server (30)
- SSRS (5)
- TFS (1)
- Tips & Tricks (16)
- Twitter bootstrap (1)
- VB.NET (1)
- Visual Studio 2012/2013 (1)
- Web Services (1)
- Windows Workflow (1)
Top Posts & Pages
- How to Collapse all #regions only(!) in C# (Visual Studio)
- Disable click outside of bootstrap model area to close modal
- Get Row Number in MySQL
- GridView: Findcontrol from HeaderTemplate/ItemTemplate
- Kendo grid error : kendo.all.min.js:12 Uncaught TypeError: e.slice is not a function
- The client and server cannot communicate, because they do not possess a common algorithm
- hide img tag if src is empty but without javascript/jQuery or css3
- MySQL : The user specified as a definer ('root'@'%') does not exist
- Modify Collection while Iterating C#
- UpdatePanel and triggers from a repeater control
Recent Posts
- How to compile .NET Core Console Application as .exe File?
- Define Composite Key in Model.(Core, EF Code First)
- How to remove x from Internet Explorer ?
- The client and server cannot communicate, because they do not possess a common algorithm
- How to check if all items are the same in a list C#
- How to Collapse all #regions only(!) in C# (Visual Studio)
- Issue: Password field returned empty in edit mode
- Load XML from URL giving an error (The remote server returned an error: (401) Unauthorized.)
- How to use Variable in MySQL Like Clause ?
- Error :(System.Web.UI.HtmlControls.HtmlIframe) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl) in VS2017
Blog Stats
- 157,437 hits
Rahul Bhatia
Profile
Blog Stats
- 157,437 hits
Comments