<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=453321722-04012007><FONT face=Arial size=2>Hi
all.</FONT></SPAN></DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial size=2>I have come across
an issue that I am not sure about in .NET</FONT></SPAN></DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial size=2>I have a value being
returned from a stored procedure. Tha value is a decimal value, i.e.
511.34</FONT></SPAN></DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial size=2>But when I do this
:- system.Double(rdr['AMOUNT']).ToString('C'); (converting it
to a currency format)</FONT></SPAN></DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial size=2>I get an
error "<SPAN><EM>Specified cast is not valid"</EM> yet I
know there IS a value being passed in, and it IS a
double.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial
size=2><SPAN></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial size=2><SPAN>anyone know
WHY?</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial
size=2><SPAN></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=453321722-04012007><FONT face=Arial size=2><SPAN>Thanks,
Jeremy</SPAN></FONT></SPAN></DIV></BODY></HTML>
<BR>
<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Free Edition.<BR>
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 04/01/2007 13:34<BR>
</FONT> </P>