General discussion

Locked

ASP-html small tag removes decimal point

By Dan_Cohen ·
I run a web based report using Active Server Script. This report runs a stored procedure from an Oracle database.

I then place the fields returned from this query into an HTML table using the Response.Write function and the report is e-mailed to a distribution group.

Since the number of fields returned are on the high size, I use the <small> tag in each cell in the table to reduce the font size and make the report fit easily into a normal monitor size.

The report runs perfectly 99.7%of the time. Every once in a great while, it will incorrectly report a number as missing a decimal point. For example it will display 200, when the correct number is 20.0. The underlying data is correct.

Removing the <small> tag for that cell then reports the right number.

Ideas?

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

ASP-html small tag removes decimal point

by matthew.alverson In reply to ASP-html small tag remove ...

Without seeing the exact code that produces this table, I would suggest try using the font tag e.g. <font size=2>.

Collapse -

ASP-html small tag removes decimal point

by tim.bruce In reply to ASP-html small tag remove ...

Have you tried using style sheets vs. html tags?

Collapse -

ASP-html small tag removes decimal point

by Dan_Cohen In reply to ASP-html small tag remove ...

The question was auto-closed by TechRepublic

Collapse -

ASP-html small tag removes decimal point

by mjfilichia In reply to ASP-html small tag remove ...

I would wrap the recordset field with a format function in VBScript...

Syntax is formatNumber(numericExpression, NumberofDigitsAfterDecimal)
i.e.
<%
formatNumber(rsField,1)
%>

Where rsField is the field returned after the recordset. Try it and see what happens.

J.

Collapse -

ASP-html small tag removes decimal point

by Dan_Cohen In reply to ASP-html small tag remove ...

The question was auto-closed by TechRepublic

Collapse -

ASP-html small tag removes decimal point

by Dan_Cohen In reply to ASP-html small tag remove ...

This question was auto closed due to inactivity

Back to Web Development Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums