Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
sir how can i set the background of my webform in c# asp.net 2.0
Posted
Updated 9-Aug-16 1:56am
Comments
Sumit_Kumar_Sinha 19-Oct-12 8:13am    
can u explain question properly..........not post a half part of question.....
Bhushan Shah1988 19-Oct-12 8:21am    
WHAT YOU WANT TO SET IN BACKGROUND?
ANY IMAGE OR SPECIFIC COLOR?

EXPLAIN YOUR PROBLEM PROPERLY.
[no name] 19-Oct-12 8:46am    
Why are you screaming at the poor guy?
tusharkaushik 22-Oct-12 10:31am    
I want to change the background image of my webpage.

in your css file you need this

C#
div#PageWrapper
        {
            background-color: #000;
            background-image: url('../images/darker_wood_1600x1200.jpg');
            background-attachment: scroll;
            background-repeat: repeat-x;
       }
 
Share this answer
 
 
Share this answer
 
Comments
fjdiewornncalwe 19-Oct-12 9:26am    
My 2: OP has asked about background image, not color.
Well I'm not Getting Ur Query Properly.
But what I got from this is that U want to Design ur web-form.If yes:

1-Visual Studio provides a Great help to design ur page.U can just select the page->Go to it's Properties Window->Set Background(For Image)/BgColor properties according to ur requirement.

2-Otherwise in Visual Studio just select ur Page->Use the Background Color Button available on Toolbar of VS.

3-Otherwise if u r proficient in CSS, generate a CSS class according to ur Requirement & just Select this class in Class property of form.

Hope this would help u.
 
Share this answer
 
div#PageWrapper
{
background-color: #000;
background-image: url('../images/darker_wood_1600x1200.jpg');
background-attachment: scroll;
background-repeat: repeat-x;
}
 
Share this answer
 
Comments
Richard Deeming 9-Aug-16 10:17am    
This question was answered FOUR YEARS AGO.

If you're going to resurrect an ancient question, your answer needs to be more than a repost of someone else's answer on the same question!

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