sql - Does datalist tag need to be bind on serverside when not using database -
sql - Does datalist tag need to be bind on serverside when not using database -
i have few lines of code in no server connection , databse fetching included. problem image not beingness displayed when want show in datalist.
<asp:datalist id="dlpic" runat="server" repeatdirection="horizontal" repeatcolumns = "4"> <itemtemplate> <div class="item" id="construction"> <div class="border"> <a id="imagelink" href="~/images/gallery/gallery_halmar001.jpg" class="zoom prettyphoto" runat="server" > <img src="images/gallery/gallery_halmar001.jpg" class="scale-with-grid" /> </a> </div> <h5><a href="#"></a></h5> <p></p> <div class="shadow"></div> </div> </itemtemplate> </asp:datalist>
do still need bind datalist?
yes need bind it. datalist not render items if unbound or bound list 0 items. if you're not binding anything, why utilize datalist @ all? display markup directly.
sql asp.net datalist
Comments
Post a Comment