Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. <asp:ListView ID="rptListingAllMandatoryCourses" runat="server" OnItemDataBound="rptListingAllMandatoryCourses_ItemDataBound">
  2. <LayoutTemplate>
  3. <Catalogue title="<%#DataBinder.Eval(Container.DataItem, "CatalogueTitle")%>" description="<%#DataBinder.Eval(Container.DataItem, "CatalogueDescription")%>">
  4. <div runat="server" ID="groupPlaceholder"></div>
  5. </Catalogue>
  6. </LayoutTemplate>
  7. <GroupTemplate>
  8. <asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
  9. </GroupTemplate>
  10. <ItemTemplate>
  11. <Course>
  12. <CourseTitle><a onclick="linkcourse("<%#DataBinder.Eval(Container.DataItem, "CourseID")%>");return false;" href="#" title="Launch <%# DataBinder.Eval(Container.DataItem, "CourseTitle")%>"><%# System.Web.HttpUtility.HtmlEncode((String)(DataBinder.Eval(Container.DataItem, "CourseTitle").ToString().Length > 25 ? DataBinder.Eval(Container.DataItem, "CourseTitle").ToString().Remove(22) + "..." : DataBinder.Eval(Container.DataItem, "CourseTitle")))%></a></CourseTitle>
  13. <RatingsEnabled><%#DataBinder.Eval(Container.DataItem, "ratingsEnabled")%></RatingsEnabled>
  14. <Rating><%#DataBinder.Eval(Container.DataItem, "rating")%></Rating>
  15. <RatingCommentsEnabled><%#DataBinder.Eval(Container.DataItem, "ratingCommentsEnabled")%></RatingCommentsEnabled>
  16. <Comment><%#DataBinder.Eval(Container.DataItem, "Comment")%></Comment>
  17. </Course>
  18. </ItemTemplate>
  19. </asp:ListView>
  20.  
  21. <Catalogue title="<%#DataBinder.Eval(Container.DataItem, "CatalogueTitle")%>" description="<%#DataBinder.Eval(Container.DataItem, "CatalogueDescription")%>"> <asp:PlaceHolder runat="server" ID="itemPlaceHolder" /> </Catalogue>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement