-
cellfonttag not working
Here's my code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(DB_UNIT)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
I changed the size for cellfonttag to 1 or 6 and no effect on display.
When I change the size for headerfonttag the display changed accordingly.
I am using te enterprise version.
-
cellfonttag not working (reply)
Hi Indra,
First, you have a typo in your program.
MyDb.dbReset(DB_UNIT)
Should be:
MyDb.dbReset(210)
Second, I'm not sure that 6 is a legitimate HTML size. Try 1-5.
Mark.
------------
indra at 2/28/2002 1:18:43 PM
Here's my code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(DB_UNIT)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
I changed the size for cellfonttag to 1 or 6 and no effect on display.
When I change the size for headerfonttag the display changed accordingly.
I am using te enterprise version.
-
cellfonttag not working (reply)
I forgot to change MyDb.dbReset(DB_UNIT) to MyDb.dbReset(210).
As I mentioned previously that changing the size has no effect. I used 1, 2, 3, 4, 5 and no changes in the display.
But when I changed the headerfonttag's size from 1 to 5, the header text got bigger and when I changed it to 2 the header text became smaller.
Here is the updated code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(210)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
------------
Mark at 2/28/2002 2:25:02 PM
Hi Indra,
First, you have a typo in your program.
MyDb.dbReset(DB_UNIT)
Should be:
MyDb.dbReset(210)
Second, I'm not sure that 6 is a legitimate HTML size. Try 1-5.
Mark.
------------
indra at 2/28/2002 1:18:43 PM
Here's my code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(DB_UNIT)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
I changed the size for cellfonttag to 1 or 6 and no effect on display.
When I change the size for headerfonttag the display changed accordingly.
I am using te enterprise version.
-
cellfonttag not working (reply)
Try this code ...
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "CellFontTag=Size=5"
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
%>
------------
indra at 2/28/2002 2:40:19 PM
I forgot to change MyDb.dbReset(DB_UNIT) to MyDb.dbReset(210).
As I mentioned previously that changing the size has no effect. I used 1, 2, 3, 4, 5 and no changes in the display.
But when I changed the headerfonttag's size from 1 to 5, the header text got bigger and when I changed it to 2 the header text became smaller.
Here is the updated code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(210)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
------------
Mark at 2/28/2002 2:25:02 PM
Hi Indra,
First, you have a typo in your program.
MyDb.dbReset(DB_UNIT)
Should be:
MyDb.dbReset(210)
Second, I'm not sure that 6 is a legitimate HTML size. Try 1-5.
Mark.
------------
indra at 2/28/2002 1:18:43 PM
Here's my code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(DB_UNIT)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
I changed the size for cellfonttag to 1 or 6 and no effect on display.
When I change the size for headerfonttag the display changed accordingly.
I am using te enterprise version.
-
cellfonttag not working (reply)
Thanks!
I found the problem in the code. It works now!
Thank you for your help.
Indra
------------
Mark at 2/28/2002 5:36:27 PM
Try this code ...
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "CellFontTag=Size=5"
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
%>
------------
indra at 2/28/2002 2:40:19 PM
I forgot to change MyDb.dbReset(DB_UNIT) to MyDb.dbReset(210).
As I mentioned previously that changing the size has no effect. I used 1, 2, 3, 4, 5 and no changes in the display.
But when I changed the headerfonttag's size from 1 to 5, the header text got bigger and when I changed it to 2 the header text became smaller.
Here is the updated code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(210)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
------------
Mark at 2/28/2002 2:25:02 PM
Hi Indra,
First, you have a typo in your program.
MyDb.dbReset(DB_UNIT)
Should be:
MyDb.dbReset(210)
Second, I'm not sure that 6 is a legitimate HTML size. Try 1-5.
Mark.
------------
indra at 2/28/2002 1:18:43 PM
Here's my code:
<HTML>
<HEAD><TITLE></TITLE>
<body>
<br>
<br>
<%
Set MyDb = Server.CreateObject("Asp.DB"
MyDb.dbDSN = Application("sDSN"
MyDb.dbUnit = 210
if (Request("Reset" = 1) then MyDb.dbReset(DB_UNIT)
MyDb.dbMode = "grid"
MyDb.dbDBType = "SQL"
MyDb.dbSQL = "select * from classes"
MyDb.dbOptions = "HeaderFontTag=Face=""verdana"" ; size=2, CellFontTag=Face=""verdana"" Size=2"
MyDb.dbNavigation = True
MyDb.dbImageDir="/images/aspdb/"
Mydb.dbNavigationIcon="std"
MyDb.dbNavigation = "Top"
MyDb.dbButtonAnchor = False
MyDb.dbGridDisplayFlds = "1, 2, 3, 4"
MyDb.aspDB
Set MyDb = Nothing
%>
</BODY>
</HTML>
I changed the size for cellfonttag to 1 or 6 and no effect on display.
When I change the size for headerfonttag the display changed accordingly.
I am using te enterprise version.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|