Ask a Question related to ASP, Design and Development.
-
Patrick J. Schouten #1
Format Textbox on exit to Currency
I am new to ASP/VBScript and I am trying to format a texbox when a
user exits it. In Visual Basic you could put the following in the Exit
property of the textbox:
textbox1 = Format(textbox1, "Currency")
Is this possible in ASP/VbScript? Any help appreciated. Please show
code in your reply, especially where to put this code in the asp page?
Thanks.
Patrick J. Schouten Guest
-
format currency
Hello All & Greetings. Can someone pl tell me in a hurry how I can format a currency item in 2 decimal places. thanks in advance. RK -
How do I view currency field in format $xx.xx
Hi everybody, I would like to know how do I view a value that has a currency type (Access) in the format $xx.xx. An example of what I would like to... -
Format Currency in ASP?
Is there an easy way to format a number into a currency display style eg: $100,000. I have this set in my Access database on the field but my asp... -
Textbox Field Format
What is the best way (or How) to format a form textbox field so that when the user is entering data the text don't move (like it's trying to adjust... -
format number into currency format ($1,000,000.00)
SELECT '$' + CONVERT(VARCHAR, CONVERT(MONEY, 1000000), 1) "lamP" <phantlam@yahoo.com> wrote in message... -
Evertjan. #2
Re: Format Textbox on exit to Currency
Patrick J. Schouten wrote on 13 jul 2003 in
microsoft.public.inetserver.asp.general:
No, it has a> I am new to ASP/VBScript and I am trying to format a texbox when a
> user exits it. In Visual Basic you could put the following in the Exit
> property of the textbox:
>
> textbox1 = Format(textbox1, "Currency")
>
> Is this possible in ASP/VbScript?
FormatCurrency Function
FormatNumber Function
see:
<[url]http://msdn.microsoft.com/library/[/url]
en-us/script56/html/vsfctformatnumber.asp>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest
-
Aaron Bertrand [MVP] #3
Re: Format Textbox on exit to Currency
You could use client-side JavaScript, with an onblur() event.
<input type=text onblur='someFunction(this);'>
Please follow up in a client-side group for more information.
"Patrick J. Schouten" <pschouten1701@hotmail.com> wrote in message
news:1b97a9cd.0307130754.23a9c488@posting.google.c om...> I am new to ASP/VBScript and I am trying to format a texbox when a
> user exits it. In Visual Basic you could put the following in the Exit
> property of the textbox:
>
> textbox1 = Format(textbox1, "Currency")
>
> Is this possible in ASP/VbScript? Any help appreciated. Please show
> code in your reply, especially where to put this code in the asp page?
> Thanks.
Aaron Bertrand [MVP] Guest
-
John Ogi #4
Re: Format Textbox on exit to Currency
There is a format currency function in VBScript also. But
the thing you are missing is that in order to use that in
your asp server-side code, you will have to submit the
form first. It is possible to use VBScript on the client-
side, but that is only advisable if you have control over
the browser the users are using. IE with VBScript
enabled. In that case u can write script tags with the
appropriate calls to your vbscript code. like this:
u can call a function
<input type="text" name="blah" onBlur="FormatThis(this);">
or call the FormatCurrency function
<INPUT type="text" name="blah"
onBlur="VBSscript:FormatCurrency(no reference handy)">
GL
texbox when a>-----Original Message-----
>Patrick J. Schouten wrote on 13 jul 2003 in
>microsoft.public.inetserver.asp.general:
>>> I am new to ASP/VBScript and I am trying to format afollowing in the Exit>> user exits it. In Visual Basic you could put the>>> property of the textbox:
>>
>> textbox1 = Format(textbox1, "Currency")
>>
>> Is this possible in ASP/VbScript?
>No, it has a
>
>FormatCurrency Function
>FormatNumber Function
>
>see:
>
><[url]http://msdn.microsoft.com/library/[/url]
>en-us/script56/html/vsfctformatnumber.asp>
>
>--
>Evertjan.
>The Netherlands.
>(Please change the x'es to dots in my emailaddress)
>.
>John Ogi Guest
-
Patrick Schouten #5
Re: Format Textbox on exit to Currency
Thanks. Looks like I have a bit to learn about ASP. I am still trying to
get the hang of "server side" and "client side" scripts. Thanks for the
help.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Patrick Schouten Guest



Reply With Quote

