473,890 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text size issue on asp page

Hi,

I cant seem to alter the text size on the code below only the colour, the
code you see is all that the page consists of from start to finish that's
all of it, cant apply css nothing works.

Can anyone help?

Regards
Simon

<!--#include file="Vars.asp" -->
<!--#include file="Functions .asp" -->
<%
' Dim itm
' Response.Write( "dashboard_done ={{")
' For Each itm In Request.Form
' Response.Write( itm & " - " & Request.Form(it m) & ", ")
' Next
' Response.Write( "}}")
' Response.End()

Dim id
Dim sql, rsBooking, rsMessage

Dim sResponse
sResponse = ""

id = Request.Form("i d")
If Len(id) = 0 OR NOT IsNumeric(id) Then
Response.Write( "detail_done=ER ROR")
Response.End()
End If

' rsBooking...

sql = "SELECT *, dbo.booking_for m.SPECIAL_INSTR UCTIONS,
dbo.CarTypes.De scription, dbo.Customers.C ompanyName FROM ((dbo.booking_f orm
INNER JOIN dbo.CarTypes ON dbo.booking_for m.VEHICLE_TYPE =
dbo.CarTypes.Ca rTypeID) INNER JOIN dbo.Customers ON dbo.booking_for m.ACCOUNT
= dbo.Customers.A ccountNo) WHERE ID=" + EncodeDbParam(i d)

Set rsBooking = Server.CreateOb ject("ADODB.Rec ordSet")
rsBooking.Open sql, g_ConnectionStr ing

If NOT rsBooking.BOF AND NOT rsBooking.EOF Then
Dim sDetail

Dim sQuoteText

sQuoteText = ""
If Len(rsBooking.F ields.Item("Mil eageToDriver"). Value) 0 Then
sQuoteText =
FormatNumber((r sBooking.Fields .Item("MileageT oDriver").Value ), -1, -2, -2, -
2)
End If
If 1 = 2 Then ' ----------------- Start Disabled
sDetail = sDetail & "<font color=""#000000 ""><b>" &
rsBooking.Field s.Item("VEHICLE _TYPE").Value & _
"</b" & rsBooking.Field s.Item("JOURNEY _TYPE").Value &
"</font><br>"

sDetail = sDetail & "<font color=""#000000 "">" & "Booking ref: <font
color=""#FF0000 ""><b>" & _
rsBooking.Field s.Item("ID").Va lue & "</b></font>&nbsp;<fon t
color=""#000066 ""><b>C/A</b></font>&nbsp;<fon t color=""#FF0000 "">" &
rsBooking.Field s.Item("ACCOUNT ").Value & "</font></font><br>"

sDetail = sDetail & "<font color=""#FF0000 ""><b>" &
FormatDateTime( rsBooking.Field s.Item("TimeOfB ooking").Value, vbShortTime) &
_
"</b></font>&nbsp;&nbs p;<font
color=""#0066FF ""><b>Quote&nbs p;£" & sQuoteText & "</b></font><br>"

sDetail = sDetail & "<font color=""#0066FF ""><b>" &
rsBooking.Field s.Item("TITLE1" ).Value & "&nbsp;" & _
UCase((rsBookin g.Fields.Item(" PAX_NAME1").Val ue)) & "&nbsp;" &
UCase(rsBooking .Fields.Item("P AX_NAME2").Valu e) & "&nbsp;" & _
rsBooking.Field s.Item("PAX_NAM E3").Value & "&nbsp;" &
rsBooking.Field s.Item("PAX_NAM E4").Value & "</b></font><br>" & _
"<font color=""#000000 "">" & rsBooking.Field s.Item("MOBILE_ NO").Value &
"</font><br>"

sDetail = sDetail & "<font color=""#0066FF ""><b>" & _
rsBooking.Field s.Item("FLIGHT_ NUMBER").Value & "&nbsp;" &
rsBooking.Field s.Item("DEPARTI NG_FROM").Value & "<br>" & _
rsBooking.Field s.Item("COLL_BU ILDING_NAME_NO" ).Value & ",&nbsp;" & _
rsBooking.Field s.Item("COLL_ST REET").Value & "<br>" &
rsBooking.Field s.Item("COLL_CI TY_TOWN").Value & "<br>" & _
rsBooking.Field s.Item("COLL_CO UNTY").Value & "<br>" &
UCase(rsBooking .Fields.Item("C OLL_POST_CODE") .Value) & "&nbsp;" & _
rsBooking.Field s.Item("COLL_CO NTACT_TEL").Val ue & "</b></font><br>"

sDetail = sDetail & "<font color=""#FF6600 ""><b>" &
rsBooking.Field s.Item("DEST_AI RPORT_STATION") .Value & "<br>" & _
rsBooking.Field s.Item("DEST_BU ILDING_NAME_NO" ).Value & "&nbsp;"
& rsBooking.Field s.Item("DEST_ST REET").Value & "<br>" & _
rsBooking.Field s.Item("DEST_CI TY_TOWN").Value & "<br>" &
rsBooking.Field s.Item("DEST_CO UNTY").Value & "<br>" & _
rsBooking.Field s.Item("DEST_PO ST_CODE").Value & "</b></font<font
color=""#000000 "">" & rsBooking.Field s.Item("DEST_CO N_NUMBER").Valu e &
"</font><br>"

sDetail = sDetail & "<font color=""#000000 "">" &
rsBooking.Field s.Item("VIA_ROA D1").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE1").Value & "&nbsp;" &
rsBooking.Field s.Item("VIA_ROA D2").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE2").Value & "&nbsp;" &
rsBooking.Field s.Item("VIA_ROA D3").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE3").Value & "&nbsp;" &
rsBooking.Field s.Item("VIA_ROA D4").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE4").Value & "</font><br><br>"

sDetail = sDetail & "<font color=""#000000 ""><b>Journ ey
Notes</b></font><br><font color=""#0000CC ""><b>" &
rsBooking.Field s.Item("SPECIAL _INSTRUCTIONS") .Value & "<b></font>"

End If ' ----------------- End Disabled
' ------------------------ Start New Code

If Request.Form("v iewType") = "dest" Then
sDetail = sDetail & "<font color=""#FF6600 ""><b>" & _
rsBooking.Field s.Item("DEST_BU ILDING_NAME_NO" ).Value & "&nbsp;"
& rsBooking.Field s.Item("DEST_ST REET").Value & "<br>" & _
rsBooking.Field s.Item("DEST_CI TY_TOWN").Value & "<br>" &
rsBooking.Field s.Item("DEST_CO UNTY").Value & "<br>" & _
rsBooking.Field s.Item("DEST_PO ST_CODE").Value & "</font><br><font
color=""#0066FF "">" & rsBooking.Field s.Item("DEST_CO N_NUMBER").Valu e &
"</b></font><br>"

sDetail = sDetail & "<font color=""#000000 "">" &
rsBooking.Field s.Item("VIA_ROA D1").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE1").Value & "&nbsp;" &
rsBooking.Field s.Item("VIA_ROA D2").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE2").Value & "&nbsp;" &
rsBooking.Field s.Item("VIA_ROA D3").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE3").Value & "&nbsp;" &
rsBooking.Field s.Item("VIA_ROA D4").Value & "&nbsp;" & _
rsBooking.Field s.Item("VIA_POS T_CODE4").Value & "</font><br>"

sDetail = sDetail & "<font color=""#ff0000 ""><b>Journ ey
Notes</b></font><br><font color=""#ff0000 ""><b>" &
rsBooking.Field s.Item("SPECIAL _INSTRUCTIONS") .Value & "<b></font>"
Else
sDetail = sDetail & "<font color=""#000000 ""><b>" &
rsBooking.Field s.Item("Descrip tion").Value & _
"</b" & rsBooking.Field s.Item("JOURNEY _TYPE").Value &
"</font><br>"

sDetail = sDetail & "<font color=""#000000 "">" & "Ref: <font
color=""#FF0000 ""><b>" & _
rsBooking.Field s.Item("ID").Va lue & "</font>&nbsp;<fon t
color=""#000066 ""><b>C/A</font>&nbsp;<fon t color=""#FF0000 "">" &
rsBooking.Field s.Item("Company Name").Value & "</b></font></font><br>"

sDetail = sDetail & "<font color=""#FF0000 ""><b>" &
FormatDateTime( rsBooking.Field s.Item("TimeOfB ooking").Value, vbShortTime) &
_
"</b></font>&nbsp;&nbs p;<font color=""#0066FF ""><b>Quote £"
& sQuoteText & "</b></font><br>"

sDetail = sDetail & "<font color=""#0066FF ""><b>" &
rsBooking.Field s.Item("TITLE1" ).Value & "&nbsp;" & _
UCase((rsBookin g.Fields.Item(" PAX_NAME1").Val ue)) & "&nbsp;"
& UCase(rsBooking .Fields.Item("P AX_NAME2").Valu e) & "&nbsp;" & _
rsBooking.Field s.Item("PAX_NAM E3").Value & "&nbsp;" &
rsBooking.Field s.Item("PAX_NAM E4").Value & "</font>" & _
"<font color=""#000000 "">" & rsBooking.Field s.Item("MOBILE_ NO").Value
& "</b></font><br>"

sDetail = sDetail & "<font color=""#0066FF ""><b>" & _
rsBooking.Field s.Item("FLIGHT_ NUMBER").Value & "&nbsp;" &
rsBooking.Field s.Item("DEPARTI NG_FROM").Value & "<br>" & _
rsBooking.Field s.Item("COLL_BU ILDING_NAME_NO" ).Value & ",&nbsp;" &
_
rsBooking.Field s.Item("COLL_ST REET").Value & "<br>" &
rsBooking.Field s.Item("COLL_CI TY_TOWN").Value & "<br>" & _
rsBooking.Field s.Item("COLL_CO UNTY").Value & "<br>" &
UCase(rsBooking .Fields.Item("C OLL_POST_CODE") .Value) & "&nbsp;" & _
rsBooking.Field s.Item("COLL_CO NTACT_TEL").Val ue & "</b></font><br>"
End If
' ------------------------ End New Code

If Len(sResponse) 0 Then sResponse = sResponse & "&"

sResponse = sResponse & "booking_detail =" & Server.URLEncod e(sDetail)
sResponse = sResponse & "&booking_found =true"
Else
' sResponse = sResponse & " Currently logged on - No journies
assigned"
End If

rsBooking.Close
Set rsBooking = NOTHING
' rsMessage ...

sql = "SELECT * FROM MessageToAll ORDER BY ID DESC"

Set rsMessage = Server.CreateOb ject("ADODB.Rec ordSet")
rsMessage.Open sql, g_ConnectionStr ing

If NOT rsMessage.BOF AND NOT rsMessage.EOF Then
If Len(sResponse) 0 Then sResponse = sResponse & "&"

sResponse = sResponse & "message=" &
Server.URLEncod e(UCase((rsMess age.Fields.Item ("MESSAGE").Val ue)))

sResponse = sResponse & "&message_found =true"
Else
' TODO: ---------------- Response.Write( "login_done =Bad username /
password")
End If

If Len(sResponse) 0 Then sResponse = sResponse & "&"

sResponse = sResponse & "detail_done=SU CCESS"

rsMessage.Close
Set rsMessage = NOTHING

Response.Write( sResponse)
%>

--
Simon Gare
The Gare Group Limited

website: www.thegaregroup.co.uk
website: www.privatehiresolutions.co.uk
Mar 1 '07 #1
1 1717

"Simon Gare" <si***@simongar e.comwrote in message
news:e7******** ******@TK2MSFTN GP04.phx.gbl...
Hi,

I cant seem to alter the text size on the code below only the colour, the
code you see is all that the page consists of from start to finish that's
all of it, cant apply css nothing works.

Can anyone help?
My suggestion would be to use 'View Source'.

Save the resulting file as a HTM and place in the same folder as your ASP.
If you visit the HTM you should see the same results.
Now edit the HTM and start slicing away at the contents to leave only a
small example of the problem
Then if you can't see away to fix it post the HTML to a more appropriate
group (cross-post to here as well if you like). That way we don't have to
wade through all that code.

A better description of the problem would help. 'atter the text size' what
text, where, what size is it now, what do you want it to be?

Mar 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6530
by: stef | last post by:
Hello: I am trying to design a web page whose graphics content would change according to the "text Zoom" settings of the user. (Basically the goal is to use mathematical symbols that automatically resize in response to zoom events). Is it possible to detect a zoom change event? Stefan
5
3782
by: sanj | last post by:
Hi all, My site is located at: http://www.eastdayspa.com/index.html I have use these main styles /* main styles */
6
2720
by: Rod Snyder | last post by:
I'm trying to set up an asp.net (vb.net) that will allow a user to insert/update a bio/profile. I wanted to create a SQL Server 2000 table that includes their contact info and bio info. However, I'm not getting SQL Server to accept more than about two paragraphs of info. I've tried the datatypes of ntext and nvar char to no success. I'm presuming most people will be cutting and pasting from a Word document also. Does anyone have any...
14
2375
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I read an xml file and, using the values retrieved from it, determine what text should be displayed and which controls should be rendered and - most importantly - where those controls should be rendered. The ultimate goal is to have some text...
16
9392
by: Neal | last post by:
Hi, I saw the VB6 Code to do this at this link: http://www.dotnet247.com/247reference/msgs/11/56581.aspx The VB6 Code reads as follows: Private Type Rect Left As Long
7
3351
by: Yeah | last post by:
Ever since I upgraded my Windows display to 120 DPI (kind of a necessary change), fonts have been clearer and graphics have been crisper. However, the 25% automatic increase in the text size on my web site has thrown it all askew. Combining my monitor's native resolution of 1280x1024 and the XP setting of 120 DPI, everything else is great, but now standard Serif on my web site looks like I'm reading a Dr. Seuss book. Obviously,...
10
2885
by: Cerebral Believer | last post by:
Hi all, I am keen to allow people who view my site to be able to resize the text in their browsers (especially for people who need to read larger text). With my old web-page I specified the point size in the HTML code, and noticed that when using Internet Explorer the text could not be resized. In designing my new site I have chosen to express the text sizes as percentages in a stylesheet, e.g. ..side_panel_title {
1
2653
by: peck2000 | last post by:
Related to my earleir post ... this is the same project to re-purpose the Classifieds application in BEGINNING ASP 3.0 (Wrox) to a comicbook database ... This is a brainteaser that should have been easy to resolve but just doesn't seem to work for me ... The original application includes a form page for editing the details of an "item". In my case the item is a comicbook. The page functions just fine as long as I stick with text fields, but I...
2
2931
by: sent85 | last post by:
My issue is when I try to increase or decrease the text size of my page by navigating through “View - > Text Size -> Increase /Decrease” it will change the entire page content. But my requirement is like even though I try to do the “View - > Text Size -> Increase /Decrease” operation in either Firefox or IE. My page should not get disturb, No change should occur in my page. I am following W3 STANDARDS, so that I am using only 'div', not...
1
4240
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly? http://geekarama.co.uk/new_home.html here is the code for new_home.html and following that the CSS...
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10919
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5846
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4674
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4270
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3275
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.