473,769 Members | 7,315 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6344
Response.Write "<td align=right><fo nt 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.co m> wrote in message
news:#N******** ******@TK2MSFTN GP09.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=""content 4"">" &
ars.Fields("REV ENUE") & "</font></td>")

I would use this instead...

Response.Write( "<td class=""content 4"">" & ars.Fields("REV ENUE") & "</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=""content 4"">" &
ars.Fields("REV ENUE") & "</font></td>")

I would use this instead...

Response.Write( "<td class=""content 4"">" & ars.Fields("REV ENUE") &
"</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=""content 4"">" &
: > ars.Fields("REV ENUE") & "</font></td>")
: >
: > I would use this instead...
: >
: > Response.Write( "<td class=""content 4"">" & ars.Fields("REV ENUE") &
: > "</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=""content 4"" style=""text-align: right"">" &
ars.Fields("REV ENUE") & "</td>")

....but shouldn't he also make this change?
Response.Write( "<td class=""content 4"" style=""text-align: right"">" &
ars.Fields("REV ENUE").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=""content 4"" style=""text-align: right"">" &
ars.Fields("REV ENUE").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
2417
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 does the use of html tags has slow down the process of opening in excel... does speical care needs to be taken so that large html files open in excel quiclky.....................
3
7773
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 DB and display it onscreen. No matter which way I open the file, convert it to Unicode/leave it as is or what ever, I see all single bytes ok, but double bytes become 2 seperate single bytes. Surely there is an easy way to convert these mixed...
5
2636
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 depending on member expiration dates. When the form is submitted, the code loops through the form contents and sends an email to those members that meet the selected criteria. All this worked perfectly when I was sending text emails, but since I
5
15820
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
7390
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 browser displays or offers to save the binary file instead. I would like to have the browser accept and display the revised HTML code as well as offering to open or save the attached file. This SHOULD be possible using a multipart MIME format -...
4
4475
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 server. Does anyone have any examples on how to do this ?? I dont really understand how to get from HTML string to HTML document. I can probably work out how to save this. do i create an html object ??
3
3157
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 somebody, please, help me out? I am on this for days. My code is as follows:
2
2013
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
2051
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
9589
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
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10219
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...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
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
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.