如何在c#中使用ser querystring参数? [英] how ser querystring parameter in c#?

查看:102
本文介绍了如何在c#中使用ser querystring参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

c#中的ser querystring参数如何?

how ser querystring parameter in c#?

推荐答案

有关如何传递和使用查询字符串的详细信息,请查看:

< a href =http://www.codeproject.com/KB/aspnet/QueryString.aspx>使用QueryString在页面之间传递变量 [ ^ ]

如何使用Querystring [ ^ ]



如果您面对特定问题。
For details of how to pass and use query strings, look here:
Passing variables between pages using QueryString[^]
How to use Querystring[^]

Post specific issue if you face.


您好,



当您发布问题时,请提供适当的信息。

我认为您询问查询字符串值。



请阅读以下链接,以便更好地了解查询字符串。



使用QueryString在页面之间传递变量 [ ^ ]

http://msdn.microsoft.com/en-us/library/6c3yckfw(ⅴ = vs.100).aspx [ ^ ]

http://www.dotnetperls.com/querystring [ ^ ]

http://www.aspdotnet-suresh.com/2012/10/aspnet-pass -multiple-parameters-in.html [ ^ ]



请查看此链接,这个链接可能对你有帮助...
Hi,

While you post a question please be given proper information.
I think your asking the query string values.

please read the follwing links for better understading about the query string.

Passing variables between pages using QueryString[^]
http://msdn.microsoft.com/en-us/library/6c3yckfw(v=vs.100).aspx[^]
http://www.dotnetperls.com/querystring[^]
http://www.aspdotnet-suresh.com/2012/10/aspnet-pass-multiple-parameters-in.html[^]

please check with this links , this links might be help for you...


可以使用以下格式传递查询字符串

the query string can be passed by using the following format
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        String id="123";
        String name = "hello";

        Response.Redirect("Default2.aspx?id="+id+"&name="+name);
    }
}



不允许在''&''符号和其他参数之间留出空格

你可以使用里面的buttonclick函数或任何其他函数



要在下一页中检索查询字符串的值,请在页面加载中使用以下内容


don''t allow spaces between ''&'' symbol and other parameter
you can use this inside buttonclick function or any other function

To retrive the value of the query string in next page use the following in page load

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string m = Request.QueryString["id"].ToString();
        string n = Request.QueryString["name"].ToString();
        Response.Write(m + " " + n);
    }
}


这篇关于如何在c#中使用ser querystring参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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