Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
How to add a background image in asp.net
Posted
Updated 3-Jan-20 19:48pm

body
{
background-image:<<url>>;
}
 
Share this answer
 
 
Share this answer
 
Comments
Member 12148350 1-Jan-16 3:30am    
how to set background image when we are using a data connectivity with asp.net and sql
Member 12148350 1-Jan-16 3:32am    
except creating a database in asp.net and sql as a data connectivity, what else we can do?
Follow these simple steps:
1. Right click on the solution and select Add Existing Item.
2. Browse for an image and add it.
3. Now right click on any space on the page and select properties.
4. Go to Background and click the ellipses symbol [...]
4. Browse for the image you added recently and give

The image will be set as page background!
 
Share this answer
 
Comments
M.Narmatha 15-Dec-11 0:57am    
how to set paricular part of page only...
Gaurav Jadhav 12-Mar-13 7:31am    
how to image over an image in visual studio 2010 c#.net
you can apply css to your page body for an image in page background like below:


body
{
background-image:<<url>>;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900