格式化Request.Form中的值的十进制值

编程入门 行业动态 更新时间:2024-10-23 20:19:27
本文介绍了格式化Request.Form中的值的十进制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我问这个问题,因为我搜索过并没有发现任何与此查询相关的内容。如果这是一个错误,我表示歉意。 请参阅以下代码。我正在使用2个ASP页面。一个用于填充十进制值(实际上是某物的单价),另一个用于接收和处理它。用户可以将第一页中的值作为整数输入,也可以输入带小数位的数字。防爆。 2345.88因为产品往往具有这种价值。 现在这是我收到它的第二个ASP页面。

Hello all, I ask this question because I searched and did not find anything that related to this query. My apologies if this is a mistake. Please see the following code. I am using 2 ASP pages. One to fill up a decimal value (it is actually the unit price of something) and the other to receive and process it. The value in the first page can be entered by the user as a whole number OR as a number with decimal places. Ex. 2345.88 since products tend to have that kind of values. Now this is in the second ASP page where I receive it.

展开 | 选择 | Wrap | 行号 推荐答案

Sk, 这很奇怪。我只是尝试了这里,它运行良好。 Jared Sk, That''s odd. I just tried it here and it worked fine. Jared

Sk, 那是'奇。我只是尝试了这里,它运行良好。 Jared Sk, That''s odd. I just tried it here and it worked fine. Jared

yes ....它在你的例子中运行正常。我的仍然无法正常工作。您可能知道的任何功能或格式结构可以帮助我吗? 请帮忙。 Sk

yes....it does work fine in your example. In mine it still does not work properly. Any functions or formatting structures you might know to help me with this? Please help. Sk

yes ....它在你的例子中运行正常。我的仍然无法正常工作。您可能知道的任何功能或格式结构可以帮助我吗? 请帮忙。 Sk yes....it does work fine in your example. In mine it still does not work properly. Any functions or formatting structures you might know to help me with this? Please help. Sk

如果我看到你的代码,我就不能想到任何东西...... 你是否正在使用formatPercent或类似的东西点? Jared

I can''t think of anything off hand, maybe if I saw your code... Are you using a formatPercent or something similar at some point? Jared

更多推荐

格式化Request.Form中的值的十进制值

本文发布于:2023-07-27 11:59:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222327.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Request   Form   十进制值

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!