473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

convert html to asp using response.write

How to convert the following html to asp page using response.write?
Thanks.

<td align="right"><Font class=content4><%=ars.Fields("REVENUE")%></td>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
5 6330
Response.Write "<td align=right><font class=content4>" & ars("REVENUE") &
"</td>"

Have you been to any ASP tutorials?
http://www.aspfaq.com/2183

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"eddie wang" <ew***@kmg.com> wrote in message
news:#N**************@TK2MSFTNGP09.phx.gbl...
How to convert the following html to asp page using response.write?
Thanks.

<td align="right"><Font class=content4><%=ars.Fields("REVENUE")%></td>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
"eddie wang" wrote:
: How to convert the following html to asp page using response.write?
: Thanks.
:
: <td align="right"><Font class=content4><%=ars.Fields("REVENUE")%></td>

Response.Write("<td align=""right""><Font class=""content4"">" &
ars.Fields("REVENUE") & "</font></td>")

I would use this instead...

Response.Write("<td class=""content4"">" & ars.Fields("REVENUE") & "</td>")

Add this to content4 class.
text-align: right;

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #3
Roland Hall wrote:
"eddie wang" wrote:
How to convert the following html to asp page using response.write?
Thanks.

<td align="right"><Font
class=content4><%=ars.Fields("REVENUE")%></td>


Response.Write("<td align=""right""><Font class=""content4"">" &
ars.Fields("REVENUE") & "</font></td>")

I would use this instead...

Response.Write("<td class=""content4"">" & ars.Fields("REVENUE") &
"</td>")

Add this to content4 class.
text-align: right;


Unless you wanted to override what's in the content4 class for this
particular instance ... :-)

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4
"Bob Barrows" wrote:
: Roland Hall wrote:
: > "eddie wang" wrote:
: >> How to convert the following html to asp page using response.write?
: >> Thanks.
: >>
: >> <td align="right"><Font
: >> class=content4><%=ars.Fields("REVENUE")%></td>
: >
: > Response.Write("<td align=""right""><Font class=""content4"">" &
: > ars.Fields("REVENUE") & "</font></td>")
: >
: > I would use this instead...
: >
: > Response.Write("<td class=""content4"">" & ars.Fields("REVENUE") &
: > "</td>")
: >
: > Add this to content4 class.
: > text-align: right;
:
: Unless you wanted to override what's in the content4 class for this
: particular instance ... :-)

True, but then I'd use:
Response.Write("<td class=""content4"" style=""text-align: right"">" &
ars.Fields("REVENUE") & "</td>")

....but shouldn't he also make this change?
Response.Write("<td class=""content4"" style=""text-align: right"">" &
ars.Fields("REVENUE").Value & "</td>")

I know it's not required but isn't it the preferred way?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Jul 19 '05 #5
Roland Hall wrote:
...but shouldn't he also make this change?
Response.Write("<td class=""content4"" style=""text-align: right"">" &
ars.Fields("REVENUE").Value & "</td>")

I know it's not required but isn't it the preferred way?


I know it's preferred, but I hardly ever do it. The guilt is becoming
unbearable. ;-)

Actually, I've never run into a problem I needed to solve by explicitly
specifying the Value property. I tend to avoid coding in ways that make it
matter. Of course, when I start doing .Net, I will have to start changing my
ways...

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #6

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

Similar topics

0
by: Navin | last post by:
hi, i am using the following code to generate a xls file using the content type now when the user opnes the file at his pc it takes long time to open..if the no of records in file is large...
3
by: hunterb | last post by:
I have a file which has no BOM and contains mostly single byte chars. There are numerous double byte chars (Japanese) which appear throughout. I need to take the resulting Unicode and store it in a...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
5
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
6
by: john | last post by:
The standard method to transmit a file from an aspx page to a browser is to stream the file to the response then end the response. The HTML code generated by the aspx page is discarded, and the...
4
by: csgraham74 | last post by:
Hi, Ive posted on this previously but had no response. Basically i need to build some html using a rich text editor. Then i want to actually create an html document from this and save it to my...
3
by: shapper | last post by:
Hello, Could someone tell me how to convert a XML file into another XML file using a XSL file with a parameter? I created the code to do it, and it seems ok, but it is not working. Could...
2
by: aashishn86 | last post by:
hii...i am creating a chart using html and asp the code for it is : <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <% Dim data1Array(3) data1Array(0) = 5
1
by: aashishn86 | last post by:
hii...i am creating a chart using html and asp the code for it is : <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <% Dim data1Array(3) data1Array(0) = 5
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.