0

I'm making a start page and want to let the user change the image for the carousel. The only way I see now to retrieve the image is by its GUID like this:

Index.cshtml

@UI.Content("1d2b6621-b7f4-4857-b131-0adcdceb4a57")

How would I get it by property name? Something like:

@UI.Content("Model.Regions.CarouselImage1.Url")
4

1 回答 1

4

假设您的区域“CarouselImage1”是一个 ImageRegion,您可以使用以下内容检索图像 url:

@UI.Content(Model.Regions.CarouselImage1.Id)
于 2013-07-28T10:05:09.140 回答