This is a migrated thread and some comments may be shown as answers.

Using the NestedViewTemplate Container inline

1 Answer 5 Views
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 11 Jan 2019, 07:03 AM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 14 Jan 2019, 12:42 AM
Delete this thread I figured it out.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Share this question
or