将文本框文本传递到另一个页面 [英] Pass text box text to another page
本文介绍了将文本框文本传递到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将first.aspx页的文本框文本传递给second.aspx页?
how can i pass a textbox text of first.aspx page to second.aspx page?
推荐答案
// on first page
response.redirect("second.aspx?string="textbox1.text);
//and on second page
string value= request.querystring["string"].tostring();
可能会有所帮助,
ASP.NET状态管理概述 [
Might be helpful,
ASP.NET State Management Overview[^]
:)
有很多方法可以在页面之间传递信息.
1)使用会话变量
2)使用QueryString
3)使用物体
有关实现这些方式的详细说明,请访问此处 [
There are many ways to pass information between pages.
1) Use session variables
2) Use QueryString
3) Use objects
For detailed description on implementing these ways, go Here[^]
这篇关于将文本框文本传递到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文