什么是查询字符串? [英] What is the querystring?
本文介绍了什么是查询字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是ASP.net中的查询字符串?如何使用它?
What is the querystring in ASP.net and how does one use it?
Coould you give me an example of it?
推荐答案
Google搜索的第一个链接"ASP.net querystring":
http://www.dotnetperls.com/querystring [
The first link for the Google search "ASP.net querystring":
http://www.dotnetperls.com/querystring[^]
有关如何传递和使用查询字符串的详细信息,请参见:
使用QueryString在页面之间传递变量 [另一个描述该链接的链接 [
For details of how to pass and use query strings, look here:
Passing variables between pages using QueryString[^]
Another link describing the same[^]
查询字符串可帮助您将诸如ID之类的值从一页转移到另一页.在接收页面中,您必须接收值.
喜欢,-
Query string helps you to transfer some value like ID from One page to another page. And in the receiving page you have to received the values.
Like,-
Response.REdirect("abc.aspx?ID=1");
int Id = Convert.ToInt32(Page.Request.QueryString["ID"].ToString());
这篇关于什么是查询字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文