简单的简单问题 [英] simple simple question

查看:72
本文介绍了简单的简单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计,


好​​吧,我有一个名为A的文本框。并且该文本框中的值为B。


当用户按下提交时,我希望A:B出现在页面上。我怎么这么做?
这样做?


我很欣赏这是非常基本的东西,但我必须从某个地方开始!


干杯(TIA)

Oli

Hi Folks,

Alright, I have a textbox called "A" and the value in that textbox is "B".

When the user presses submit I want A : B to appear on the page. How do I
do it?

I appreciate that this is very basic stuff, but I got to start somewhere!

Cheers (TIA)
Oli

推荐答案

Oli写道:
你好伙计,

好吧,我有一个名为A的文本框。并且该文本框中的值为
B。

当用户按下提交时,我希望A:B出现在页面上。我是怎么做的?
Hi Folks,

Alright, I have a textbox called "A" and the value in that textbox is
"B".

When the user presses submit I want A : B to appear on the page. How
do I do it?



什么页面?您要提交请求的页面?如果是这样,请执行

这个:


<%

response.write" A:" &安培; Request.Form(A)

%>


HTH,

Bob Barrows

-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。


On what page? The page to which you are submitting the request? If so, do
this:

<%
response.write "A:" & Request.Form("A")
%>

HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


Oli于2004年1月26日在microsoft.public.inetserver.asp中写道。 general:
Oli wrote on 26 jan 2004 in microsoft.public.inetserver.asp.general:
好吧,我有一个名为A的文本框。并且该文本框中的值为
B。

当用户按下提交时,我希望A:B出现在页面上。我是怎么做到的?

我很欣赏这是非常基本的东西,但我必须在某个地方开始!
Alright, I have a textbox called "A" and the value in that textbox is
"B".

When the user presses submit I want A : B to appear on the page. How
do I do it?

I appreciate that this is very basic stuff, but I got to start
somewhere!




如果你的意思是同一页面,它与ASP无关,这就是

服务器代码。


请查看客户端NG。


-

Evertjan。

荷兰。

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



If you mean the same page, it has nothing to do with ASP, which is
serverside code.

Please see a clientside NG.

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


" Oli"写道......
"Oli" wrote...
好吧,我有一个名为A的文本框。并且该文本框中的值为B。

当用户按下提交时,我希望A:B出现在页面上。我该怎么做?
Alright, I have a textbox called "A" and the value in that textbox is "B".

When the user presses submit I want A : B to appear on the page. How do I
do it?




嗨Oli,


好​​的 - 我想两种方式,如果你*知道*文本框被称为B,并且

你不需要这个是动态的:


<%

Response.Write" B:" &安培; Request.Form(B)

%>


上面将文本B:写入页面,然后从<获取值br />
提交元素名称的表格数据B


如果你不知道*该元素将被称为B并且你想要

显示所有字段等,您可以遍历表单集合,检查

out

http://www.aspfaq.com/show.asp?id=2036

希望这会有所帮助,


问候


Rob



Hi Oli,

Ok - well two ways I guess, if you *know* that the textbox is called B, and
you dont need this to be dynamic then :

<%
Response.Write "B: " & Request.Form("B")
%>

The above writes the text B: to the page and then gets the value from the
submitted form data for the element name B

If you do not *know* that the element will be called B and you wanted to
display ALL fields etc, you could iterate through the form collection, check
out

http://www.aspfaq.com/show.asp?id=2036
Hope this helps,

Regards

Rob


这篇关于简单的简单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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