QueryString Method in ASP.Net.

QueryString Method

  • The QueryString method is one of the Oldest method for passing value from one page to another page in ASP.Net.
  • Below the Code how to work with QueryString method in ASP.Net.

    Syntax :- Response.Redirect(“DestinationPage.aspx?Value=” & string);

    Example: -

    str name=”MeeraAcademy”;Response.Redirect(“Pagename.aspx?Name=”&name);

    on the other side received page we write

    str name;
    name = Request.QueryString["Name"].ToString();

Leave a Reply

Your email address will not be published. Required fields are marked *

2 + 2 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">