GET and POST Method

GET Method and POST Method
  • When working in ASP Environment, HTML forms variable are used to Pass data from client browser to the web server.

  • If the form variable¬† are passed to the web server using the GET Method, then the variable are read from the QueryString Collection.

  • In this case, you should retrieve the value from the QueryString¬† Method.
    Example of GET Methodvariable =Request.QueryString["txtname"]

  • If the variable are passed to the server using POST Method, then the value will be in the Request Object forms collection.

  • In this case, you should retrive the value from the Forms collection.

    Example of POST Method
    variable=Request.Form["txtname"]

Leave a Reply

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

7 + 9 =


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="">