[解决]如何在按钮单击上传递查询字符串? [英] [Solved] How to pass query string on the button click ?
本文介绍了[解决]如何在按钮单击上传递查询字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请建议解决方案...
Please suggest the solution...
推荐答案
参考
如何在按钮单击中使用查询字符串发送值 [ ^ ]
传递它像
Pass it like
protected void Button_Click(object sender, CommandEventArgs e)
{
Response.Redirect("Page2.aspx?QueryVal=yes");
}
在下一页中,访问它就像
And in the Next Page , access it like
var value = Request.QueryString["QueryVal"];
请参阅:
使用QueryString在页面之间传递变量 [ ^ ]
http:// www.aspdotnet-suresh.com/2012/10/query-string-in-aspnet-example-c-vbnet.html [ ^ ]
See this:
Passing variables between pages using QueryString[^]
http://www.aspdotnet-suresh.com/2012/10/query-string-in-aspnet-example-c-vbnet.html[^]
这篇关于[解决]如何在按钮单击上传递查询字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文