hai们,我是.net的新手.请告诉我有关querystring的信息,以及如何实时使用它 [英] hai guys iam new to .net.Please tell me about querystring and how can i use it in real time
本文介绍了hai们,我是.net的新手.请告诉我有关querystring的信息,以及如何实时使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们,.net的新手,请给我有关Querystring以及如何使用它的信息.
hai guys,am new to .net please give me the information about Querystring and how cal i use it
推荐答案
用于通过querystring发送参数.
For sending parameters through querystring.
Response.Redirect("test.aspx?id=1");
用于接收test.aspx页的查询字符串
For Receiving querystring of test.aspx page
string myid= Request.QueryString["id"].ToString();
谢谢
Ashish
Thanks
Ashish
查询字符串是用于将用户状态保留在Web应用程序中的选项之一.
有关完整的信息,请检查此.
http://msdn.microsoft.com/en-us/magazine/cc300437.aspx#S4 [ ^ ]
您还可以在此处 ^ ].
Hi,
Query string is one of the options for persisting the User State in the web application.
for complete information check this.
http://msdn.microsoft.com/en-us/magazine/cc300437.aspx#S4[^]
Also you can see millions of articles, tutorials about query string here Google[^].
以下CP文章应通过示例向大家解释:使用QueryString在页面之间传递变量 [
Following CP article should explain you all with a sample: Passing variables between pages using QueryString[^]
这篇关于hai们,我是.net的新手.请告诉我有关querystring的信息,以及如何实时使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文