Display Text Vertically (rotated 90 Degrees) In IE And Firefox
Jul 1, 2010
I have a page that houses an asp GridView and I would like to display the text vertically to allow it to print better. Currently I'm using css to do that: .rotate { -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); width: 25px; }
Which works in FF except the 25px width is ignored and in IE the width is being set correctly but the text isn't vertical. Anyone know how to make this work in both browsers?
View 1 Replies
Similar Messages:
Dec 7, 2010
If I enter the a location of: Latitude = 28 Degrees, 45 Minutes, 12 Seconds Longitude = 81 Degrees, 39 Minutes, 32.4 Seconds. It gets converted into Decimal Degrees format to be stored in the database with the following code:
Coordinates coordinates = new Coordinates();
coordinates.LatitudeDirection = this.radLatNorth.Checked ? Coordinates.Direction.North : Coordinates.Direction.South;
coordinates.LatitudeDegree = this.ConvertDouble(this.txtLatDegree.Text);
coordinates.LatitudeMinute = this.ConvertDouble(this.txtLatMinute.Text);
coordinates.LatitudeSecond = this.ConvertDouble(this.txtLatSecond.Text);
coordinates.LongitudeDirection = radLongEast.Checked ? Coordinates.Direction.East : Coordinates.Direction.West;
coordinates.LongitudeDegree = this.ConvertDouble(this.txtLongDegree.Text);
coordinates.LongitudeMinute = this.ConvertDouble(this.txtLongMinute.Text);
coordinates.LongitudeSecond = this.ConvertDouble(this.txtLongSecond.Text);
//gets the calulated fields of Lat and Long
coordinates.ConvertDegreesMinutesSeconds();
In the above code, ConvertDouble is defined as:
private double ConvertDouble(string value)
{
double newValue = 0;
double.TryParse(value, out newValue);
return newValue;
}
and ConvertDegreesMinutesSeconds is defined as:
public void ConvertDegreesMinutesSeconds()
{
this.Latitude = this.LatitudeDegree + (this.LatitudeMinute / 60) + (this.LatitudeSecond / 3600);
this.Longitude = this.LongitudeDegree + (this.LongitudeMinute / 60) + (this.LongitudeSecond / 3600);
//adds the negative sign
if (LatitudeDirection == Direction.South)
{
this.Latitude = 0 - this.Latitude;
}
else if (LongitudeDirection == Direction.West)
{
this.Longitude = 0 - this.Longitude;
}
}
If I don't make any change to the latitude or longitude and I click Apply Changes which basically does the above calucation again, it generates a different latitude and longitude in the database. This happens every time I go to edit it and don't make a change (I just click Apply Changes and it does the calculation again with a different result). In the above scenario, the new Latitude and Longitude is: Latitude = 28 Degrees, 45 Minutes, 12 Seconds Longitude = 81 Degrees, 40 Minutes, 32.4 Seconds If I do it again, it becomes:
Latitude = 28 Degrees, 45 Minutes, 12 Seconds Longitude = 81 Degrees, 41 Minutes, 32.4 Seconds The other part of this is that when I go into edit, it takes the decimal degrees format of the latitude and longitude and converts it to the degrees minutes seconds format and puts them into their respective textboxes. The code for that is:
public void SetFields()
{
Coordinates coordinateLocation = new Coordinates();
coordinateLocation.Latitude = this.Latitude;
coordinateLocation.Longitude = this.Longitude;
coordinateLocation.ConvertDecimal();
this.radLatNorth.Checked =
coordinateLocation.LatitudeDirection == Coordinates.Direction.North;
this.radLatSouth.Checked = !this.radLatNorth.Checked;
this.txtLatDegree.Text = coordinateLocation.LatitudeDegree.ToString().Replace("-", string.Empty);
this.txtLatMinute.Text = Math.Round(coordinateLocation.LatitudeMinute, 0).ToString().Replace("-", string.Empty);
this.txtLatSecond.Text = Math.Round(coordinateLocation.LatitudeSecond, 2).ToString().Replace("-", string.Empty);
this.radLongEast.Checked =
coordinateLocation.LongitudeDirection == Coordinates.Direction.East;
this.radLongWest.Checked = !this.radLongEast.Checked;
this.txtLongDegree.Text = coordinateLocation.LongitudeDegree.ToString().Replace("-", string.Empty); ;
this.txtLongMinute.Text = Math.Round(coordinateLocation.LongitudeMinute, 0).ToString().Replace("-", string.Empty);
this.txtLongSecond.Text = Math.Round(coordinateLocation.LongitudeSecond, 2).ToString().Replace("-", string.Empty);
}
From the above examples, you can see that the Minute kept increasing by 1, which would indicate why it is generating a different latitude and longitude in decimal degrees in the database, so I guess the problem is more in the above area, but I am not sure where or why it is doing it?
public void ConvertDecimal()
{
this.LatitudeDirection = this.Latitude > 0 ? Direction.North : Direction.South;
this.LatitudeDegree = (int)Math.Truncate(this.Latitude);
if (LatitudeDirection == Direction.South)
{
this.LatitudeDegree = 0 - this.LatitudeDegree;
}
this.LatitudeMinute = (this.Latitude - Math.Truncate(this.Latitude)) * 60;
this.LatitudeSecond = (this.LatitudeMinute - Math.Truncate(this.LatitudeMinute)) * 60;
this.LongitudeDirection = this.Longitude > 0 ? Direction.East : Direction.West;
this.LongitudeDegree = (int)Math.Truncate(this.Longitude);
if (LongitudeDirection == Direction.West)
{
this.LongitudeDegree = 0 - this.LongitudeDegree;
}
this.LongitudeMinute = (this.Longitude - Math.Truncate(this.Longitude)) * 60;
this.LongitudeSecond = (this.LongitudeMinute - Math.Truncate(this.LongitudeMinute)) * 60;
}
View 2 Replies
Jan 5, 2011
I was successful in displaying text on webpage but in firefox, it does not display the text at all. If i see the page source, it has text in there. but why doesn't it display? In Chrome and IE, it works fine.
Edit:When i used firebug, it looks like the content is behind the screen. I just guess. What you experts say on this?
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div>
<table id="Table2" width="150%" border="0" cellspacing="0" cellpadding="0" [code]....
View 1 Replies
Feb 26, 2010
I am really having a hard time adding images on my pages. Im using CSS to implement design on my aspx pages. I want to add a background but the codes I am getting are not working.
I also have problems on aligning text vertically. All the text are on the bottom of a division, I want to put it into the center...
View 7 Replies
Jun 15, 2010
I am porting an ASP.NET 2.0 project to VS 2010 and ASP.NET 4.0. I have the asp.menu set up to go horizontally across the top of my master page. This works pretty good, but I have a couple of pages that take a long time to load a lot of data (that is another issue though). The problem that I am having is that when these slow pages load the menu is initially vertical and then switches to horizontal. This looks so bad that I had initially thought that it was displaying my sitemap page. I just want it to draw properly (horizontal) to begin with.
Also, the content page has a script manager with CDNenable set to true.
The menu is defined as:
<asp:Menu id="Menu3" runat="server" datasourceid="SiteMapDataSource1"
View 9 Replies
Mar 14, 2011
I am using VS 2010 and ASP.NET 4.0. I have the ASP:Menu in the top of my master page and it's orientation property is set to horizontally. I have a problem with some pages that take a long time to load data. The problem I am having is that when these slow pages load, the menu is initially vertical and then switches to horizontal after few seconds which doen't look good. I have tried to change Orientation in MenuItemDataBound but no difference.
View 3 Replies
Jan 13, 2010
Does anyone know of a data control that displays the columns vertically?
Example
First Name Bill Bob
Last Name Smith Jones
Middle Initial A C
View 2 Replies
May 13, 2010
Is it possible to make the column headings appear vertically in my matrix report?
View 2 Replies
Sep 9, 2010
I have a fairly basic line graph which is bound to a SQLDataSource control. The graph displays perfectly, but I want the labels on the X-axis to display vertically rather than horizontally.
I have used the following code to try and do this but it is having no effect:
<AxisX Title="Patient Safety Submissions" IsLabelAutoFit="True">
<LabelStyle Angle="90" interval="1" />
</AxisX>
[code]....
View 2 Replies
Mar 27, 2010
I am working on one photogallery project, I have admin panel which will let administrators to upload images, save in the file system and name in database. I will retrieve all images in list view and let administrator handle all images which are verticle or horizontal.. I will let administrator to rotate image 90 degree or 360degree in listview edit mode. I have no idea about that.
View 2 Replies
Jul 26, 2010
I have an odd problem. I have 2 divs on a page side by side. The first div floats left and has normal orientation. The second div floats right and contains only a single table that contains labels but no form fields. This table needs to have an orientation of -90 degrees. In other words, the text reads from bottom to top, left to right instead of the normal English right to left, top to bottom. I can't seem to find anything on how to do this other than using an image file which won't work because the labels need to get filled from a database.
View 1 Replies
Mar 5, 2011
I have an issue with Firefox. After creating a new template for my website using <div> tags, i noticed that not all tags are displayed when i preview the site in firefox.
I put the sample template in the following location:
[URL]
I was able to verify my CSS with the following link: [URL] and it passed without any problems. The html part is correct as well.
My question is how come two div tags: <div class="header9"></div> and <div id="sidebar"></div> are not displayed in firefox. It works fine with explorer but firefox has issues.
Also the background-color for <body> takes over in the middle, even though i've created a <div id="wrapper"> with all divs inside and background color assigned to white.
I've tried developer extension for firefox but still was not able to find the problem.
It's very annoying that simple (basic) tags such <div> could have isssues being displayed. Does anyone know what am i doing wrong and how to fix that issue?
View 7 Replies
Jul 5, 2010
The text on my website is skewed and different areas are running together when viewing my site on a Mac using either Firefox or Safari. Is there anything I can do about this?
View 1 Replies
Dec 14, 2010
<a id="rptQuestions_ctl01_hlQuestion" onclick="rptQuestions_ctl01_pnlAnswer.style.display = rptQuestions_ctl01_pnlAnswer.style.display == 'none'? 'block' : 'none';" href="javascript:">Header Link</a>
<div id="rptQuestions_ctl01_pnlAnswer" style="display:none;">
This works as i would expect in IE8, where it displays the div when you click the header link, and then hides it when clicking the header link again. However, in Firefox, nothing happens when i click the header link.I'm assuming this is to do with IE being forgiving of an error i have made, and Firefox sticking to the rules, but i can't see what i am doing wrong.
View 5 Replies
Apr 14, 2010
I'm using AutoCompleteExtender to pop up some matches when user doing input to a textbox. The utoCompleteExtender will call a method defined in a webservice to get the data.
It works fine in IE, but in FireFox there's nothing happened at all.
I started the webservice in debug mode from VS2008, and set breakpoint in the webmethod. I found when I run the web app in IE, the breakpoit will be hit, but when I run the web app in FireFox, the breakpoint will not be hit. That means the rendered Javascript by AutoCompleteExtender doesn't call the web service.
What might prevent the Javascript from calling the web service in Firefox?
View 1 Replies
Jan 20, 2010
i want to take gridviews cell text with javascript on firefox and ie how can we do it?
View 6 Replies
Dec 21, 2010
I have added 7 banners on my home page and i am roteting them with using JavaScript. I have horizontal menu with submenus. and below that i have disply above roteting banner. now it works very well in IE but while in Firefox it diaply behind the banner. so that dynamic submenu can not able to disply. [URL] website url.
View 1 Replies
Jan 3, 2011
Is there a way to use the firefox (or chrome or any other good browsers) rendering engine to convert html (as a text string) to an image?I have full access to the server I'm using, so no limitations there.
View 2 Replies
Feb 13, 2011
Is there a way in .net to display the text automatically when i type the first letter or word in a text box? I am looking for something like MS-Excel.. In MS-Excel, if the first word is given, automatically it displays the remaining texts, only if values are given previously.
View 6 Replies
Nov 16, 2010
has any one done any automation related to Firefox - Firebug
I am trying to automate some task using C#
I found these two open source projects related to automating firefox
[URL]
how to interact with firefox addons
View 2 Replies
May 7, 2015
I am unable to get it done as i have huge data in my table which is spoiling the standard look and feel of grid view..
if (row.RowType == DataControlRowType.DataRow) {
ViewState["description"] = e.Row.Cells[10].Text;
if (e.Row.Cells[10].Text.Length >= 25){
e.Row.Cells[10].Text = e.Row.Cells[10].Text.Substring(0, 30) + "...";
e.Row.Cells[10].ToolTip = ViewState["description"].ToString();} }
View 1 Replies
Jan 20, 2011
I have created a donut chart using ASP.NET chart control.The pies/sections are ordered in clockwise direction but I need them to be ordered in anti clockwise direction.I know that I can add the values in reverse order and achieve this but there must be a solution to this.
Also, it starts dividing the donut from 90 degrees to the right but I want it to start right from the top of the donut i.e. 0 degrees.
View 1 Replies
Feb 7, 2011
I am using Logi Reports for creating reports in my application. I am passing cookies from web application to these logi reports. Cookies were workign correctly before, but after the release of this version. Cookies are not working in these logi reports.
View 1 Replies
Mar 7, 2011
I want display text of a asp text box to be different of its original text.
View 4 Replies
Apr 19, 2010
I'm writing you because I can't display on Firefox the drag cursor for drag&dropping webparts. Is it possible to make this function available on Firefox?
View 1 Replies