将变量从asp表单页面转移到ACTION页面 [英] Tranfering variable from a asp form page to a ACTION page

查看:74
本文介绍了将变量从asp表单页面转移到ACTION页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个asp表单页面,其中使用POST ACTION = confirmation.asp页面

来保存从表单中的文本框收集的值一个数据库。

例如txtTotalOutlay字段用于确认.asp页面

更新数据库字段。


但是,表格中有一个字段是计算字段,例如

NetOutlay = .90 * txtTotalOutlay。因此,这个NetOutlay不是文本字段。

但是,在确认字段中我需要带NetOutlay的内容

并将其存储在与其他字段相同的表中。我想知道是否

将NetOutlay的值放入Session变量并在

confirmation.asp字段中使用将是正确的方法还是有更好的方法

来解决这个问题。感谢任何帮助。

谢谢。

Hi,
I got a asp form page where the POST ACTION = confirmation.asp page is used
to save the values collected from text boxes from the form in a database.
For example txtTotalOutlay field is being used in confirmation.asp page to
update a database field.

However, there is a field in the form which is calculated field e.g.
NetOutlay = .90 * txtTotalOutlay. This NetOutlay is thus not a text field.
However, in the confirmation field I need to bring the contents of NetOutlay
and store it in the same table as the other field. I am wondering whether
putting the value of the NetOutlay in Session variable and using in the
confirmation.asp field would be the right approach or there be any better way
to resolve this. Any help is appreciated.
Thanks.

推荐答案

>但是,在表格中有一个字段是计算字段,例如
> However, there is a field in the form which is calculated field e.g.
NetOutlay = .90 * txtTotalOutlay。因此,此NetOutlay不是文本字段。


那是什么?


雷在工作

杰克 < JA ** @ discussions.microsoft.com>在留言中写道

新闻:3A ********************************** @ microsof t.com ...
我有一个asp表单页面,其中POST ACTION = confirmation.asp页面是
用于保存从表单中的文本框收集的值在数据库中。例如,在confirm.asp页面中使用txtTotalOutlay字段来更新数据库字段。

但是,表格中有一个字段是计算字段,例如
NetOutlay = .90 * txtTotalOutlay。因此,此NetOutlay不是文本字段。
但是,在确认字段中,我需要带来
NetOutlay的内容并将其存储在与其他字段相同的表中。我想知道是否将NetOutlay的值放在Session变量中并在
confirmation.asp字段中使用是正确的方法还是有更好的
方法来解决这个问题。感谢任何帮助。
谢谢。
NetOutlay = .90 * txtTotalOutlay. This NetOutlay is thus not a text field.
What is it then?

Ray at work
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com... Hi,
I got a asp form page where the POST ACTION = confirmation.asp page is used to save the values collected from text boxes from the form in a database.
For example txtTotalOutlay field is being used in confirmation.asp page to
update a database field.

However, there is a field in the form which is calculated field e.g.
NetOutlay = .90 * txtTotalOutlay. This NetOutlay is thus not a text field.
However, in the confirmation field I need to bring the contents of NetOutlay and store it in the same table as the other field. I am wondering whether
putting the value of the NetOutlay in Session variable and using in the
confirmation.asp field would be the right approach or there be any better way to resolve this. Any help is appreciated.
Thanks.



Ray Costanzo [MVP]于2004年12月22日在

microsoft上写道.public.inetserver.asp.general:
Ray Costanzo [MVP] wrote on 22 dec 2004 in
microsoft.public.inetserver.asp.general:
但是,表格中有一个字段是计算字段,例如NetOutlay =。 90 * txtTotalOutlay。因此,这个NetOutlay不是文本
字段。
However, there is a field in the form which is calculated field e.g.
NetOutlay = .90 * txtTotalOutlay. This NetOutlay is thus not a text
field.



那是什么?



What is it then?




错误?


-

Evertjan。

荷兰。

(请更改x''es我的电子邮件中的点数)



an error ?

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


未从用户捕获netoutlay字段的值。相反,它是使用txtTotalOutlay中的值来计算字段的b
。希望我很清楚

就够了。谢谢。


Ray Costanzo [MVP]"写道:
The value of netoutlay field is not captured from the user. Rather it is a
calulated field by using the value from txtTotalOutlay. Hope I was clear
enough here. Thanks.

"Ray Costanzo [MVP]" wrote:
但是,表格中有一个字段是计算字段,例如
NetOutlay = .90 * txtTotalOutlay。因此,这个NetOutlay不是一个文本字段。
However, there is a field in the form which is calculated field e.g.
NetOutlay = .90 * txtTotalOutlay. This NetOutlay is thus not a text field.



那是什么?

Ray在工作中

" Jack" < JA ** @ discussions.microsoft.com>在消息中写道
新闻:3A ********************************** @ microsof t.com。 ..



What is it then?

Ray at work
"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...


我有一个asp表单页面,其中POST ACTION = confirmation.asp页面是
Hi,
I got a asp form page where the POST ACTION = confirmation.asp page is


使用

来保存从表单中的文本框收集的值在数据库中。
例如,在confirm.asp页面中使用txtTotalOutlay字段来更新数据库字段。

但是,表格中有一个字段是计算字段,例如NetOutlay = .90 * txtTotalOutlay。因此,此NetOutlay不是文本字段。
但是,在确认字段中,我需要带上
to save the values collected from text boxes from the form in a database.
For example txtTotalOutlay field is being used in confirmation.asp page to
update a database field.

However, there is a field in the form which is calculated field e.g.
NetOutlay = .90 * txtTotalOutlay. This NetOutlay is thus not a text field.
However, in the confirmation field I need to bring the contents of


NetOutlay


NetOutlay

的内容并将其存储在同一个表中作为另一个领域。我想知道是否将NetOutlay的值放在Session变量中并在
confirmation.asp字段中使用是正确的方法还是有更好的
and store it in the same table as the other field. I am wondering whether
putting the value of the NetOutlay in Session variable and using in the
confirmation.asp field would be the right approach or there be any better


方式

来解决这个问题。感谢任何帮助。
谢谢。
to resolve this. Any help is appreciated.
Thanks.




这篇关于将变量从asp表单页面转移到ACTION页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆