本文介绍了查询字符串保持不变.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是aspx的新手,并且有这样的情况:
用户将在文本框中键入内容,当他单击按钮时,页面将使用他在文本框中键入的查询字符串重定向到自身.
这是我的代码:
I am new to aspx and have such a scenario:
User will type in a textbox and when he clicks a button the page will be redirected to itself with the query string he typed into textbox.
Here is my code:
Response.Redirect("somepage.aspx?parameter=" + txtbox1.text,false);<br />
并在页面加载期间:
and during page load:
txtbox1.text = Request.QueryString["parameter"]<br />
它仅在第一次成功运行.用户在文本框中键入其他内容并单击按钮后,查询字符串保持不变.我在做什么错?
It works succesful only for the first time. After user types something else into the textbox and clicks the button the querystring remains the same. What am I doing wrong?
推荐答案
这篇关于查询字符串保持不变.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!