472,374 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

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(itm) & ", ")
' Next
' Response.Write("}}")
' Response.End()

Dim id
Dim sql, rsBooking, rsMessage

Dim sResponse
sResponse = ""

id = Request.Form("id")
If Len(id) = 0 OR NOT IsNumeric(id) Then
Response.Write("detail_done=ERROR")
Response.End()
End If

' rsBooking...

sql = "SELECT *, dbo.booking_form.SPECIAL_INSTRUCTIONS,
dbo.CarTypes.Description, dbo.Customers.CompanyName FROM ((dbo.booking_form
INNER JOIN dbo.CarTypes ON dbo.booking_form.VEHICLE_TYPE =
dbo.CarTypes.CarTypeID) INNER JOIN dbo.Customers ON dbo.booking_form.ACCOUNT
= dbo.Customers.AccountNo) WHERE ID=" + EncodeDbParam(id)

Set rsBooking = Server.CreateObject("ADODB.RecordSet")
rsBooking.Open sql, g_ConnectionString

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

Dim sQuoteText

sQuoteText = ""
If Len(rsBooking.Fields.Item("MileageToDriver").Value ) 0 Then
sQuoteText =
FormatNumber((rsBooking.Fields.Item("MileageToDriv er").Value), -1, -2, -2, -
2)
End If
If 1 = 2 Then ' ----------------- Start Disabled
sDetail = sDetail & "<font color=""#000000""><b>" &
rsBooking.Fields.Item("VEHICLE_TYPE").Value & _
"</b" & rsBooking.Fields.Item("JOURNEY_TYPE").Value &
"</font><br>"

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

sDetail = sDetail & "<font color=""#FF0000""><b>" &
FormatDateTime(rsBooking.Fields.Item("TimeOfBookin g").Value, vbShortTime) &
_
"</b></font>&nbsp;&nbsp;<font
color=""#0066FF""><b>Quote&nbsp;£" & sQuoteText & "</b></font><br>"

sDetail = sDetail & "<font color=""#0066FF""><b>" &
rsBooking.Fields.Item("TITLE1").Value & "&nbsp;" & _
UCase((rsBooking.Fields.Item("PAX_NAME1").Value)) & "&nbsp;" &
UCase(rsBooking.Fields.Item("PAX_NAME2").Value) & "&nbsp;" & _
rsBooking.Fields.Item("PAX_NAME3").Value & "&nbsp;" &
rsBooking.Fields.Item("PAX_NAME4").Value & "</b></font><br>" & _
"<font color=""#000000"">" & rsBooking.Fields.Item("MOBILE_NO").Value &
"</font><br>"

sDetail = sDetail & "<font color=""#0066FF""><b>" & _
rsBooking.Fields.Item("FLIGHT_NUMBER").Value & "&nbsp;" &
rsBooking.Fields.Item("DEPARTING_FROM").Value & "<br>" & _
rsBooking.Fields.Item("COLL_BUILDING_NAME_NO").Val ue & ",&nbsp;" & _
rsBooking.Fields.Item("COLL_STREET").Value & "<br>" &
rsBooking.Fields.Item("COLL_CITY_TOWN").Value & "<br>" & _
rsBooking.Fields.Item("COLL_COUNTY").Value & "<br>" &
UCase(rsBooking.Fields.Item("COLL_POST_CODE").Valu e) & "&nbsp;" & _
rsBooking.Fields.Item("COLL_CONTACT_TEL").Value & "</b></font><br>"

sDetail = sDetail & "<font color=""#FF6600""><b>" &
rsBooking.Fields.Item("DEST_AIRPORT_STATION").Valu e & "<br>" & _
rsBooking.Fields.Item("DEST_BUILDING_NAME_NO").Val ue & "&nbsp;"
& rsBooking.Fields.Item("DEST_STREET").Value & "<br>" & _
rsBooking.Fields.Item("DEST_CITY_TOWN").Value & "<br>" &
rsBooking.Fields.Item("DEST_COUNTY").Value & "<br>" & _
rsBooking.Fields.Item("DEST_POST_CODE").Value & "</b></font<font
color=""#000000"">" & rsBooking.Fields.Item("DEST_CON_NUMBER").Value &
"</font><br>"

sDetail = sDetail & "<font color=""#000000"">" &
rsBooking.Fields.Item("VIA_ROAD1").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE1").Value & "&nbsp;" &
rsBooking.Fields.Item("VIA_ROAD2").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE2").Value & "&nbsp;" &
rsBooking.Fields.Item("VIA_ROAD3").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE3").Value & "&nbsp;" &
rsBooking.Fields.Item("VIA_ROAD4").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE4").Value & "</font><br><br>"

sDetail = sDetail & "<font color=""#000000""><b>Journey
Notes</b></font><br><font color=""#0000CC""><b>" &
rsBooking.Fields.Item("SPECIAL_INSTRUCTIONS").Valu e & "<b></font>"

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

If Request.Form("viewType") = "dest" Then
sDetail = sDetail & "<font color=""#FF6600""><b>" & _
rsBooking.Fields.Item("DEST_BUILDING_NAME_NO").Val ue & "&nbsp;"
& rsBooking.Fields.Item("DEST_STREET").Value & "<br>" & _
rsBooking.Fields.Item("DEST_CITY_TOWN").Value & "<br>" &
rsBooking.Fields.Item("DEST_COUNTY").Value & "<br>" & _
rsBooking.Fields.Item("DEST_POST_CODE").Value & "</font><br><font
color=""#0066FF"">" & rsBooking.Fields.Item("DEST_CON_NUMBER").Value &
"</b></font><br>"

sDetail = sDetail & "<font color=""#000000"">" &
rsBooking.Fields.Item("VIA_ROAD1").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE1").Value & "&nbsp;" &
rsBooking.Fields.Item("VIA_ROAD2").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE2").Value & "&nbsp;" &
rsBooking.Fields.Item("VIA_ROAD3").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE3").Value & "&nbsp;" &
rsBooking.Fields.Item("VIA_ROAD4").Value & "&nbsp;" & _
rsBooking.Fields.Item("VIA_POST_CODE4").Value & "</font><br>"

sDetail = sDetail & "<font color=""#ff0000""><b>Journey
Notes</b></font><br><font color=""#ff0000""><b>" &
rsBooking.Fields.Item("SPECIAL_INSTRUCTIONS").Valu e & "<b></font>"
Else
sDetail = sDetail & "<font color=""#000000""><b>" &
rsBooking.Fields.Item("Description").Value & _
"</b" & rsBooking.Fields.Item("JOURNEY_TYPE").Value &
"</font><br>"

sDetail = sDetail & "<font color=""#000000"">" & "Ref: <font
color=""#FF0000""><b>" & _
rsBooking.Fields.Item("ID").Value & "</font>&nbsp;<font
color=""#000066""><b>C/A</font>&nbsp;<font color=""#FF0000"">" &
rsBooking.Fields.Item("CompanyName").Value & "</b></font></font><br>"

sDetail = sDetail & "<font color=""#FF0000""><b>" &
FormatDateTime(rsBooking.Fields.Item("TimeOfBookin g").Value, vbShortTime) &
_
"</b></font>&nbsp;&nbsp;<font color=""#0066FF""><b>Quote £"
& sQuoteText & "</b></font><br>"

sDetail = sDetail & "<font color=""#0066FF""><b>" &
rsBooking.Fields.Item("TITLE1").Value & "&nbsp;" & _
UCase((rsBooking.Fields.Item("PAX_NAME1").Value)) & "&nbsp;"
& UCase(rsBooking.Fields.Item("PAX_NAME2").Value) & "&nbsp;" & _
rsBooking.Fields.Item("PAX_NAME3").Value & "&nbsp;" &
rsBooking.Fields.Item("PAX_NAME4").Value & "</font>" & _
"<font color=""#000000"">" & rsBooking.Fields.Item("MOBILE_NO").Value
& "</b></font><br>"

sDetail = sDetail & "<font color=""#0066FF""><b>" & _
rsBooking.Fields.Item("FLIGHT_NUMBER").Value & "&nbsp;" &
rsBooking.Fields.Item("DEPARTING_FROM").Value & "<br>" & _
rsBooking.Fields.Item("COLL_BUILDING_NAME_NO").Val ue & ",&nbsp;" &
_
rsBooking.Fields.Item("COLL_STREET").Value & "<br>" &
rsBooking.Fields.Item("COLL_CITY_TOWN").Value & "<br>" & _
rsBooking.Fields.Item("COLL_COUNTY").Value & "<br>" &
UCase(rsBooking.Fields.Item("COLL_POST_CODE").Valu e) & "&nbsp;" & _
rsBooking.Fields.Item("COLL_CONTACT_TEL").Value & "</b></font><br>"
End If
' ------------------------ End New Code

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

sResponse = sResponse & "booking_detail=" & Server.URLEncode(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.CreateObject("ADODB.RecordSet")
rsMessage.Open sql, g_ConnectionString

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

sResponse = sResponse & "message=" &
Server.URLEncode(UCase((rsMessage.Fields.Item("MES SAGE").Value)))

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=SUCCESS"

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 1659

"Simon Gare" <si***@simongare.comwrote in message
news:e7**************@TK2MSFTNGP04.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
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...
5
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
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,...
14
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...
16
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
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...
10
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...
1
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...
2
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...
1
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.