6
Reply

What is syntax for implementing Query string in ASP .NET?

Sandeep Kumar

Sandeep Kumar

Dec 29, 2015
1.6k
0

    QueryString property of Request Object. When surfing internet you should have seen weird internet address such as one below. http://www.localhost.com/Webform2.aspx?name=Atilla&lastName=Ozgur

    Keerthi Venkatesan
    May 13, 2016
    0

    Syntax: To send single parameter to another page we need to write code like this: "Requested Page URL" ? "Variable name" = "Value". Example: Response.Redirect("Default2.aspx?UserId=SH531828");Example to send multiple parameters to another page we need to write code like this:Response.Redirect("Default2.aspx?UserId=SH531828 & UserName=Shraban");

    Shraban
    February 05, 2016
    0

    To pass data from one page to another we use query string.Its basically a key value pair.Syntax is Response.Redirect("Page2.aspx?id=1&name=test"); .On the second page we can get it as string name=Request.QueryString["name"].ToString();

    Rajeev Punhani
    January 27, 2016
    0

    QueryString property of Request Object. When surfing internet you should have seen weird internet address such as one below. http://www.localhost.com/Webform2.aspx?name=Atilla&lastName=Ozgur

    Kml Surani
    January 09, 2016
    0

    QueryString property of Request Object. When surfing internet you should have seen weird internet address such as one below.http://www.localhost.com/Webform2.aspx?name=Atilla&lastName=Ozgur

    Ravi Patel
    December 31, 2015
    0

    The syntax for implementing Query string in ASP .NET is Response.Redirect("Requested page.aspx ?"Key=value)

    Sandeep Kumar
    December 29, 2015
    0