提交后如何在文本框中保留值 [英] How to retain values in text box after submit

查看:160
本文介绍了提交后如何在文本框中保留值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用ASP和Javascript创建一个网页。

当点击提交按钮时,它将搜索给定输入中的值(在输入框)。

如何在点击提交按钮后保留输入框中的值




谢谢advance

Hi,
I am creating a web page using ASP and Javascript.
When submit button is clicked , It will search for the values in the input given(in the input box).
How to retain the values in the input box after the submit button is clicked



Thanks in advance

推荐答案

页面是否提交回同一页面?


只需使用ASP填充文本框即可来自上一页的输入。
Does the page submit back to the same page?

Just use ASP to populate the text box with the input from the previous page.





是的,页面被提交回同一页面,以及从数据库中检索的值显示在同一页面上。


这里我使用的是一个输入框和列表框。在输入文本框中,我将输入值并从DB中检索值。使用列表框,如果我们从列表框中选择一个值并使用提交按钮,该按钮将为该查询选择值并在同一页面中显示结果。


此外,查询选择部分已在ASP部分完成。


提前致谢
Hi ,

Yes the page is submitted back to the same page and the values which are retrieved from the databases are displayed in the same page.


Here i am using a input box and list box. In input text box i will enter values and retrieve values from the DB. Using List box,if we select a value from the list box and using a submit button which will select values for that query and display the result in the same page.

Also the query selection part has been done in the ASP part.

Thanks in advance



您好,

我正在使用ASP和Javascript创建一个网页。

单击提交按钮时,它将搜索给定输入中的值(在输入框中)。 br />
如何在点击提交按钮后保留输入框中的值




提前付款
Hi,
I am creating a web page using ASP and Javascript.
When submit button is clicked , It will search for the values in the input given(in the input box).
How to retain the values in the input box after the submit button is clicked



Thanks in advance



你想在页面提交后恢复文本值吗?


Debasis

Where you want to restore the text value after page submission?

Debasis


这篇关于提交后如何在文本框中保留值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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