Jan 15, 2013, 3:19 PM
Display an image in image control
How to display an image in image control sending you the url from an entity model
I have this code:
I have this code:
@model BE.Content
@(
Html.X().Window()
.ID("winPreviewImage")
.Title("Preview "+ (string)Model.contentName)
.Icon(Icon.Eye)
.Closable(true)
.Resizable(false)
.Draggable(false)
.Layout(LayoutType.Fit)
.Modal(true)
.Width(600)
.Height(400)
.BodyPadding(5)
.Items
(
Html.X().FormPanel()
.ID("pnlPreviewImage")
.BodyStyle("background-color: transparent;")
.DefaultAnchor("100%")
.BodyPadding(5)
.Border(false)
.Items
(
Html.X().Image()
.ID("Image")
.ImageUrl("")
.Width(500)
.Height(300)
)
)
)
I want something like this Html.X().HtmlEditorFor(m => m.contentText)
.ID("txtContentText")
.EscapeValue(true)
.FieldLabel("Content")
Last edited by Juanma; Jan 15, 2013 at 3:43 PM.