Images
Hi,
I'm trying to set a background image to my masterpage.
The code is as followed:
</
fieldset
>
</
form
>
<
img
alt
=
"EGZ"
src
=
"App_Data/Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg"
class
=
"background"
/>
</
body
>
</
html
>
Hello Daniel,
You can refer your images in the stylesheet. Create a stylesheet in Global folder ( this will register it automatically); Then create an Image folder on the same level as Global folder.
Regards,
Ivan Dimitrov
the Telerik team
Okay. I worked with an ASP control:
</
fieldset
>
<
asp:Image
ID
=
"background"
CssClass
=
"background"
runat
=
"server"
ImageUrl
=
"~/Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg"
/>
</
form
>
</
body
>
</
html
>
Hello Daniel,
You should try with /Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg
or Sitefinity/WebsiteTemplates/Egz/App_Themes/Egz/Images/bg-body2.jpg
. If you are running in the context of a Sitefinity website the link should be resolved.
All the best,
Radoslav Georgiev
the Telerik team