Friday, June 19, 2015

Responsive with asp.net datalist control

I have a problem with responsive using datalist control. But I have resolved this issue set Repeatlayout="Flow"

asp:DataList ID="DataList1" runat="server"  RepeatLayout="Flow">
<ItemTemplate>
<div class="col-sm-4 products">
<div class="news_img">
<asp:Image ID="Image1" runat="server" class="img-responsive center-block" ImageUrl='<%# bind("backgroundimage") %>'/>
</div>
<h2 class="heading1">
<asp:Label ID="lblName" runat="server" Text='<%# bind("Name") %>'></asp:Label></h2>
<p class="product_con">
<asp:Label ID="lblDescription" runat="server" Text='<%# bind("Description") %>'></asp:Label></p>
<div class="btn btn-primary center-block"><a href="#">+ Read More</a></div>
</div>
 
</ItemTemplate>
 
</asp:DataList>

No comments:

Post a Comment