问题描述
你好
asp.net和vb.nnet中的Ido搜索引擎
我执行所有代码,但搜索结果在同一页面中
我想将文本框的值放在另一个页面上,我考虑一下
会话可能有用,但是当我使用它时效果不佳.
我在vb页面中放入了behand页面,这是
textbox1.text = session."
和第二页(结果)
textbox2.text = session."
问候:doh:
hello
Ido search engine in asp.net & vb.nnet
i do all the code but the search result become in the same page
I want to take the value of the textbox and put itto another page , i think about it
session it maybe usefule , but when i used it not work well.
i put in vb page the behand page this
textbox1.text=session." "
and the second page (results)
textbox2.text=session." "
regards :doh:
推荐答案
textbox1.text = session."
textbox1.text=session." "
第一页:Session["someValue"]= textbox1.Text;
第二页:textbox2.Text = Session["someValue"].ToString();
session
的MSDN链接已提供给您.
1st Page:Session["someValue"]= textbox1.Text;
2nd Page:textbox2.Text = Session["someValue"].ToString();
MSDN link for session
is already provided to you.
< a hre f ="Example.aspx?Value=Hello World!">Click Me! < / a >
将会有价值的页面
将此代码页写在代码后面
The Page who gonna take value
Write this code pages codebehind
protected void Page_Load(object sender, EventArgs e)
{
//Get the value.
string Value = Request.QueryString["Value"].ToString();
//Show the value.
Response.Write("alert(''"+Value+"'');");
}
这篇关于将文本框值转移到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!