Using the NestedViewTemplate Container inline

2 posts, 0 answers
  1. Paul
    Paul avatar
    13 posts
    Member since:
    Nov 2014

    Posted 11 Jan Link to this post

    I'm basing my page on your car rental demo for the grid. This is the demo that opens a NestedViewTemplate when you click a row.

    The Container property is used to get the file url for the image for the car. My problem is that in my application I have several images. I want to just iterate over the image urls using inline C# code to insert the images. But I can't use the Container property in the inline code.

     

    <%

    // Container is undefined here

    // What I want to do is call something like

    List<string> urls = GetTheUrls(Container);

    for (int i = 1; i < urls.Count; ++i) { %>

    <asp:Image runat="server" AlternateText="Car Image" ImageUrl='<%# files[i]%>' Height="400px" />

    <% } %>

    %>

    So what do I do?

    I hope this is a clear enough request.

     

     

  2. Paul
    Paul avatar
    13 posts
    Member since:
    Nov 2014

    Posted 13 Jan in reply to Paul Link to this post

    Delete this thread I figured it out.
Back to Top