Interviews - C# Corner

Sandeep Kumar
What is syntax for implementing Query string in ASP .NET?
By Sandeep Kumar in ASP.NET onDec 29 2015
  • Keerthi Venkatesan
    May, 2016 13

    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

    • 0
  • Shraban
    Feb, 2016 5

    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");

    • 0
  • Rajeev Punhani
    Jan, 2016 27

    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();

    • 0
  • Kml Surani
    Jan, 2016 9

    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

    • 0
  • Ravi Patel
    Dec, 2015 31

    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

    • 0
  • Sandeep Kumar
    Dec, 2015 29

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

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS