Web Forms :: Background Color Is Not Coming Up When Print The Page?

Jan 27, 2010

I have the data in the tables. For some columns i have set the background coloe, but its not showing up in the print page.

How do i need to save the color at the back?

Code:

<td colspan="3" align="right" style="background-color: Gray; font-weight: bold">
<asp:Label ID="lbl_st" runat="server">
</asp:Label>
-
<asp:Label ID="lbl_end" runat="server"></asp:Label>
</td>

View 1 Replies


Similar Messages:

How To Print Background Color

Dec 20, 2010

im using styles to print a gray scale page (see style example) the page is well colored but if i try to print it ignore the background colors.How is it possible to indicate that the page must be printed as it looks on my monitor save for the body background color that would be white instead gray?

[Code]....

font-size:16pt; color:#656565; font-weight:bold; text-align:center; background-color:#dfdfdf; border:solid 1px #777
[Code]....
777;

View 5 Replies

Web Forms :: Setting The Content Page Background Color Different From The Master Page Back Ground Color

Jul 14, 2010

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?

View 12 Replies

Get Info From GridView DB And Print It To PDF - Background Color For ITextSharp

Jan 22, 2012

I am making a page that can get some info from a DB from a gridview and then print it to a PDF file. But I am having problems with the background color. If I use this line of code

Code : cell.BackgroundColor = New Color(System.Drawing.ColorTranslator.FromHtml("#008000"))

Then i get this error : System.Drawing.Color' has no constructors

If i changes it to this code

Code : cell.BackgroundColor = System.Drawing.ColorTranslator.FromHtml("#008000")

Then I get this error: Value of type 'System.Drawing.Color' cannot be converted to 'iTextSharp.text.BaseColor'.

My code is: (the error is underline)

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim cmd As New OleDbCommand()
Dim myAdapter As New OleDbDataAdapter()
Dim myDataSet As New DataSet()
cmd.CommandType = CommandType.Text
cmd.CommandText = "select CustomerID,City,Country from customers"

[Code] .....

View 4 Replies

Web Forms :: Gridview Print Page Coming Blank

Feb 14, 2012

Gridview Print PAge coming blank 

for below code 

but if I  comment 

GRDV.AllowPaging = False
GRDV .DataBind()  this code then it page is not blank 

I want to print complete Gridview

Code  is : 

Protected Sub PrintAllPages()
GRDV.AllowPaging = False
GRDV .DataBind()

[Code].....

View 1 Replies

Web Forms :: Print Whole Web Page With Background

Nov 6, 2012

I used below code to print whole webpage...function Print() {

View 1 Replies

Web Forms :: How To Change Background Color Of Master Page

Jan 31, 2014

How to change a background color of asp Master page that color should remain same for all pages

View 1 Replies

Web Forms :: Wish To Set A Default Background Color On The Master Page So That Each Other Web Page?

Apr 13, 2010

I have a master page that has a text box at the top with a couple of words in it. Below that I have a horizontal menu and below that there is the content place holder.I wish to set a default background color on the master page so that each other web page that uses this master page will inherit this background color.How do you do set a background color on the master page?I can't seem to select the background to set a default background color because the controls I have placed already.

View 4 Replies

Forms Data Controls :: How To Set The Background Color Of Menu In To Two Seprate Different Color

Jan 18, 2011

I m using this code

Menu menu = new Menu();
menu.MenuItemClick += new MenuEventHandler(menu_MenuItemClick);
menu.BackColor = System.Drawing.Color.AliceBlue;

But i want that background color of menu should be seprate two Different color red and AliceBlue

View 3 Replies

Web Forms :: Programmatically Access A Themed Page's Background Color Or Other CSS Property?

Jun 18, 2010

This was originally posted, in error, to another forum. Not sure how that happened. Anyways, here goes... I have a web app that uses javascript functions to make rounded corners. One of the functions requires two colors as parameters. I cannot change this function definition. My web app is in asp.net 4.0 and uses master pages and themes. To facilitate programmatic access, I moved all javascript declaration into the code behind file of the master page. It gets generated in the load event: I declare it there as a big
string (using StringBuilder) and then put it into the page with Page.

ClientScript.RegisterClientScriptBlock(... Now that I have introduced themes into my application, I have discovered a serious problem. These themes each utilize their own CSS and skin files to paint the various elements of the app's web pages in different colors (of course). But remember, as parameters, one of my javascript functions requires two colors. And now that I have themes I can no longer manually code these colors into the javascript declaration... Now I have to discover a way to extract the background color and one other color from the current theme's CSS file. Then I can feed that into the javascript declarations in the master page's PageLoad event in the master page's code behind file. This would allow the javascript function to be called on the page load and to use the current theme's colors as parameters.

View 2 Replies

How To Change The Background Color Of The Page Body

Mar 2, 2011

I tried to start my first ASP.NET MVC program and wanted to modify some parts of the project.

When i tried to change the background color of the page body, i went to the Site.css file and changed the color to #ffffff. When I rebuilt the program the color remained the same, and I found out the only way to change it is to delete it and load it back to the project.

View 2 Replies

Crystal Reports :: When Click On Print Button, Data Is Not Coming?

Dec 17, 2010

I have binded crsytal report through dataset. My crystal report is working fine. but when i click on print button, data is not coming on crystal report . the following code i have written. what i am missing out? How to pass parameter when i click on print button? and how to bind data while printing?

On pageLoad

string ReportPath = Server.MapPath("/Reports/CrystalReport1.rpt").ToString();
reportTnaApprovalbyUser.Load(ReportPath);
reportTnaApprovalbyUser.FileName = ReportPath;
ParameterInCrstalReport();
protected void BIndReport()
{
ServerLogonFunction(----);
reportTnaApprovalbyUser.SetDataSource(ds1);
//ParameterInCrstalReport();
reportTnaApprovalbyUser.SetParameterValue("@Date", DateTime.Now.Date);
reportTnaApprovalbyUser.SetParameterValue("@CompCode", bo.CompCode);
//rp.SetParameterValue(
CrystalReportViewer1.ReportSource = reportTnaApprovalbyUser;
}
protected void ParameterInCrstalReport()
{
BO bo = new BO();
ParameterFields pF = new ParameterFields();
ParameterField p1 = new ParameterField();
ParameterDiscreteValue pdv = new ParameterDiscreteValue();
p1.Name = "@Date";
pdv.Value = DateTime.Now.Date;
p1.CurrentValues.Add(pdv);
ParameterField p2 = new ParameterField();
ParameterDiscreteValue pdv2 = new ParameterDiscreteValue();
p2.Name = "@CompCode";
pdv2.Value = bo.CompCode;
p2.CurrentValues.Add(pdv2);
pF.Add(p1);
pF.Add(p2);
//CrystalReportViewer1.ParameterFieldInfo = pF;
reportTnaApprovalbyUser.SetParameterValue("@Date", DateTime.Now.Date);
reportTnaApprovalbyUser.SetParameterValue("@CompCode", bo.CompCode);
}

View 3 Replies

Web Forms :: How To Change Background Color

Jul 12, 2010

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.

View 9 Replies

Web Forms :: How To Set Background Color Of Webpart

Feb 15, 2011

I am trying to set different backgroundcolor of each webpart title. But unable to do that.

View 1 Replies

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">
</div>
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" >

View 1 Replies

Web Forms :: Dynamically Set ListBox Background Color?

Sep 25, 2010

How can I set the background color for a ListBox based on the selected value of a RadioButtonList?

if (RadioButtonList1.SelectedValue
== "1")
{ ListBox1 background.color = "#FFXXCC" }

View 3 Replies

Web Forms :: How To Have Border In GridView With Background Color

Jun 19, 2012

This is my grid view code

BorderColor="#919191" BorderStyle="Solid" BorderWidth="1px" GridLines="Both" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderColor="#919191" HeaderStyle-BorderWidth="1px" RowStyle-BorderColor="#919191" RowStyle-BorderStyle="Solid" RowStyle-BorderWidth="1px"

It is like this .....

View 1 Replies

Web Forms :: How To Store A Textbox Background Color In Table

Oct 28, 2010

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.

View 4 Replies

Web Forms :: Changing Background Color After Button Click?

May 26, 2010

i have some buttons in my detailsview like this

[Code]....

After clicking one of these buttons, my wizard ActiveStepIndex have to change. This is no problem.

[Code]....

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.

View 5 Replies

Web Forms :: Set Form's Background Color For A Default.aspx?

Dec 25, 2010

How is the color and background set for a Default.aspx form? My web looks 'dull' and needs color and stuff.

View 2 Replies

Forms Data Controls :: Change Row Background Color On Repeater?

Jun 29, 2010

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?

View 3 Replies

Forms Data Controls :: Background Color For Hidden Iframe?

Oct 13, 2010

Is it possible to change the backround color of a iframe? The default is white..

<iframe id="hdnFrm" name="hdnFrm" src="" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="width:90%; height:70px"></iframe>

View 5 Replies

Web Forms :: How To Change The Background Color Of A Selected Menu Item

Feb 10, 2011

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.

View 1 Replies

Web Forms :: Background Color Not Contained With In Outline Or Grouping Text

Dec 20, 2010

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?

View 1 Replies

Web Forms :: Display Background Color On Sitemap Data Source?

Jan 22, 2010

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

[Code]....

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.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved