Vithal Wadje
What is difference between Response.Redirect("abc.aspx",true) and Response.Redirect("abc.aspx",false)
By Vithal Wadje in ASP.NET on Dec 30 2013
  • Rashmi Saini
    Jan, 2014 7

    When we use false as second parameter in Response.Redirect then code written after Response.Redirect will be executed. And when we use true then there will be no further execution of code as it kill the thread and throw an aThreadAbortException

    • 1
  • Arjun Dhilod
    Sep, 2015 16

    True words, equivalent Exit Sub / function is called after the Redirect Redirect statement is no longer perform; False, still executed after the Redirect statement.

    • 0
  • Vithal Wadje
    Jan, 2015 1

    refer my articlehttp://www.c-sharpcorner.com/UploadFile/0c1bb2/response-redirect-true-and-response-redirect-false-in-asp-ne/

    • 0
  • Vithal Wadje
    Nov, 2014 3

    if i use Response.Redirect("abc.aspx",false) then code written after Response.Redirect("abc.aspx",false) will be executed then page is redirected ,if i use Response.Redirect("abc.aspx",true) then code written after the Response.Redirect("abc.aspx",true) will not be executed

    • 0
  • Mahanti Chiranjeevi
    Jun, 2014 2

    Response.Redirect()-->cause the browser to connect with specified URL. Use Response.Redirect() in following cases:- 1->U want to connect to a resource on any server. 2->U want to connect to a non aspx resource. 3->U want to pass querystring as part of the URL.server.Transfer()-->transfer the execution from the current Aspx file to specified Aspx file. The specified Aspx file must be on the same server. when U want to transfer the control to an Aspx page residing on the same server we should use Server.Transfer() because server.Transfer() avoid unnecessary round trip. The default use of server.Transfer() method does not pass the form data and the query string of the original page request to the transferred page.But, you can preserve the form data and query string of the original page by passing a True value to the optional second argument, PreserveForm, of the Server.Transfer() method.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS