如何传递查询字符串 [英] How to pass query string

查看:102
本文介绍了如何传递查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有三页.
在第一页中,我有两个文本框和一个按钮
在第二页中,我有一个gridview和一个linkbutton.
在第三页中,我有一个表单视图,gridview和两个linkbutton.

当我在textbox中输入一些值时,我希望该文本框值显示在第二页gridview中.
当我单击gridview超链接时,我想在第三页表单视图和gridview中显示该值.
如何传递查询字符串请给我一些提示.

Hi,

I have Three pages.
In first page i have two textbox and one button
In second page i have one gridview and one linkbutton.
In third page i have one form view, gridview and two linkbutton.

when i enter some value in textbox.i want that textbox value show in second page gridview.
when i click in gridview hyperlink then i want to show that value in third page form view and gridview.
how to pass query string pls give me some tips.

推荐答案

好吧...这里有很多了解/完全理解它的材料.外观:
使用QueryString在页面之间传递变量 [ http://triaslama.wordpress.com/2008 /04/12/retrieving-query-string-values-in-aspnet-and-javascript/ [ http://www.dotnetspider.com/resources/29911-How- use-Query-string-asp-net.aspx [ ^ ]
Okay... here are few of a lot of material to know/understand it fully.. have a look:
Passing variables between pages using QueryString[^]
http://triaslama.wordpress.com/2008/04/12/retrieving-query-string-values-in-aspnet-and-javascript/[^]
http://www.dotnetspider.com/resources/29911-How-use-Query-string-asp-net.aspx[^]


Response.Redirect("SecondPage.aspx?Param =" + Param);
希望对您有帮助....:)
Response.Redirect("SecondPage.aspx?Param="+Param);
I hope this will help u.... :)


这篇关于如何传递查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆