Web Forms :: How To Have Apply This To Background Color Of Webform
Apr 28, 2010
Is it possible to apply this to my existing webforms background color:
<div style="filter: progid:DXImageTransform.Microsoft.Gradient( GradientType=0, StartColorStr='#DCDCDC', EndColorStr='white'); width: 1400px; height: 850px">
On my webform's body tag i am using this would like to apply the gradienttype style which is above:
<body id="body" bgcolor="#c6cfde" >
I have a master page and set it's back ground color in the body tag <body style="background-color:Red">. Now that is fine for the Master page. How do I set the back ground color of the content page to a different color?
I'm trying to make a page, with a textbox, and a linkbutton. In the textbox you can enter any hex colour code you want, then you can click the linkbutton and the pages background will change to that colour. But I don't want the page to postback. I was trying this with themes, and then dynamically editing the CSS file. But neither has worked.
i want to apply color to selected number of items in checkbox list and seleted number of items in drop downlist for e.g color red for few items and black (default). I have a bit value set in data base so if bit is set to 0 then red and if 1 then back.
I have a asp.net webpage with textboxes on it. I have a button that changes the color of the textbox when clicked. Is there a way to save what color it is for each record in the database? So one record might habve a grey textbox and the other record might be yellow depending on what they choose.
After clicking one of these buttons, my wizard ActiveStepIndex have to change. This is no problem.
But now I would like to change the buttons background-color after clicking one of them. This is no problem too, but if I click the next button, the first button background color must change to white. But it does not do that. It remains constant #cccccc.
Only the button, whitch I have clicked should be #cccccc. The other buttons should be white.
I have repeater and I am using foreach to go through each row, checking for specific value and assigned the label accordingly. However, when there is a value that is not expected, I would like to highlight the whole row on yellow color.
How can I set only for specific row in repeater with different background color?
how to change the background color of a selected menu item? The background color changes on the word of the dropdown menu but not the entire row section of the menu item. Each menu item has a different word length but I want the background color length to be consistent throughout the dropdown dynamic menu. I also what to change the background parent when a menu item is selected.
I'm using panel controls because of the grouping text. I like the clean look this provides for this portion of my form. I don't like the way the panel control works though. I have both the height and the width set in the css file. I also set the background color. The grouping text is set in the mark up of the panel. The problem is that the background color is not contained with in the outline or the grouping text that the control creates. It goes beyond it. To test this I set a border to the panel in the css file. I then set the height and the width for this in the css. When this is viewed in the browser the outline created with the grouping text is no where near the size of the border I created. The border reflects the dimensions of the div. But, the outline of the grouping text and the grouping text itself is more the size of the contents. I assume this is normal for this control. Has anyone had this issue or know how to get around this? How do I get the background color to be with in the panels grouping text and it's outline? How do I get the panel to be the same as the size I set in the CSS?
I have created a web.sitemap to store all my pages and on the master page i have used the sitemap data source tool in a div tag with a class Menu to display the pages using the code and used my css page to layout the links
this works fine but I now want to put a silver background colour to make the links look more like buttons but can't work it out if i just put the background color on the menu class it just makes a silver box behind all the links not just the individual links making them look like buttons.
I have a GridView. In my RowDataBound event I add attributes for the mouse onclick event, which sets the row's background color to red when the row is clicked. This works. I have a button outside of the GridView. When I click this button, I want to read each row of the GridView, and if its background color is red I want to perform some processing on the row. I tried the following code and even when the row's background is red, I cannot get its background color (bgc is empty).
I am able to change the girdview caption in code like this:GridView1.Caption = "New grid title"But I can not find how to change the background color where this caption (in the entire girdviews heading).
Now i am saving the country of the user in Session["Country"] variable , also i am using two labels and two textboxes , initially the labels text is ABN and other Label text is ACN , and initially the Textbox length against ABN Label is 14 and and ACN Label is also 14 , now i want that whenever the Session["Country"] changes to Pakistan , it must read the configurations of Pakistan node in xml file and set the ABN Label text to NTN and the textbox which is after it must allow 18 numeric digits only instead of 14 numeric digits , same for ACN Label change to BCN and textbox which is after it must allow 22 numeric digits only instead of 14 numeric digits