Parameter called as "preserveForm" - Server.transfer

Q.  Which one of the following has a parameter called as “preserveForm”?
- Published on 16 Jun 15

a. Server.transfer
b. Response.redirect

ANSWER: Server.transfer
 

    Discussion

  • Deva   -Posted on 22 Sep 15
    Server.Transfer method has a parameter called as preserveForm. The Server.Transfer method has two parameter. The first one is type System.String that takes the URL path of the new page on the server to execute. The second parameter is preserveForm of type System.Boolean. If you provide true then will preserve the QueryString and Form collections otherwise it will clear the QueryString and Form collections data.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)