Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database problem using JScript

Status
Not open for further replies.

ferhelping

Programmer
Jun 28, 2000
106
US
This is a piece of code from my ASP page. Everything works fine but when it is displayed, the database sends the PriceGlass and PriceBottle as text, without the currency format. I need to make them display as currency, as they are in the database, with the $ symbol.

<% ...

while (!cursorW.EOF){
Response.Write(&quot;<tr><td>&quot; + cursorW('WineID') + &quot;</td>&quot;);
Response.Write(&quot;<td>&quot; + cursorW('WineName') + &quot;</td>&quot;);
Response.Write(&quot;<td>&quot;);
Response.Write(cursorW('PriceGlass'));
Response.Write(&quot;</td>&quot;);
Response.Write(&quot;<td>&quot;);
Response.Write(cursorW('PriceBottle'));
Response.Write(&quot;</td></tr>&quot;);
Response.Write(&quot;<tr><td></td>&quot;);
Response.Write(&quot;<td colspan='3'><pre>&quot; + cursorW('WineDescription') + &quot;</pre></td></tr>&quot;);
cursorW.MoveNext();
}

... %>

Please help me.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top