tags:

views:

1069

answers:

4

I simply want to set an image as a background of asp.net page? I can display image in simple format on web page, but can't apply it as background.

+1  A: 

set the background image style for the body element:

<body style="background-image:url(bgr.jpg);">
...
</body>
Marwan Aouida
A: 

This is a basic HTML thing, you need to do some CSS for example such as:

<style type="text/css">
body {
  background-image: url(background.jpg);
}
</style>
Lloyd
+4  A: 

Use CSS. Add to the theme if you're using one, or a CSS file...

body {
  background-image: url(images/image.png);
}

Best practices recommend having this in a separate file, rather than the head of the document - and most certainly not inline.

Raithlin
A: 

its better to use style sheet......

shiv shankar