rakesh chengeshpur
what is the difference between response.redirect() and navigateurl?
By rakesh chengeshpur in ADO.NET on Apr 10 2014
  • Niranjan Maharana
    Jul, 2014 5

    Using Response.Redirect(), We can pass a value from one page to another page. But using navigateurl we can only jump to another page but we can't pass any value.

    • 4
  • Pankaj  Kumar Choudhary
    May, 2015 26

    This is server control use for navigation to another page specified in the NavigateURL property. Hyperlink control doesn't expose any server side event. Response.Redirect methodThis method is used to navigate to another page from code. You can use this method to navigate from a Linkbutton or ImageButton control.

    • 2
  • Sunil Babu
    Apr, 2016 3

    NavigateUrl is the property of Hyperlink where URL is defined and navigates to a given link.Where as response.redirect (pageurl) navigates to defined page url.

    • 1
  • Srinivas Pabballa
    Aug, 2015 28

    Response.Redirect methodThis method is used to navigate to another page from code. You can use this method to navigate from a Linkbutton or ImageButton control.NavigateUrl property Use the NavigateUrl property to specify the URL to navigate to when the HyperLink control is clicked.

    • 1
  • Rahul Prajapat
    May, 2015 26

    By using Response.Redirect(), we can pass the value from one page to another page. But by navigateurl we only jump to another page

    • 1
  • Vithal Wadje
    Dec, 2014 31

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

    • 1
  • Bhabani Prasad
    May, 2014 21

    Hyperlink controlThis is server control use for navigation to another page specified in the NavigateURL property. Hyperlink control doesn't expose any server side event. Response.Redirect methodThis method is used to navigate to another page from code. You can use this method to navigate from a Linkbutton or ImageButton control. For examplePrivate Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.ClickResponse.Redirect("Page2.aspx") End Sub

    • 1
  • Bhabani Prasad
    May, 2014 21

    Hyperlink controlThis is server control use for navigation to another page specified in the NavigateURL property. Hyperlink control doesn't expose any server side event. Response.Redirect methodThis method is used to navigate to another page from code. You can use this method to navigate from a Linkbutton or ImageButton control. For examplePrivate Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.ClickResponse.Redirect("Page2.aspx") End Sub

    • 1
  • Shweta Lodha
    Apr, 2014 23

    http://forums.asp.net/t/995478.aspx?Response+Redirect+vs+NavigateUrl

    • 1
  • Munesh Sharma
    Apr, 2014 15

    In a button click event....Response.Redirect("../default.aspx");This is on a user control inside the include folder.Works ok for any page that is also in a folder.But, go to the root, it wants to go outside the Virtual Directory into the wwwroot folder to another default page. This is on my dev pc.Now, if I upload it to the server, it works ok again.I can use a simple hyperlink and it never goes outside the virtual directory.I can use a Request.Url and do some string manipulation but that seems not good enough.I ran into this a few years ago and simply used 2 navigation user controls - one for folder pages and one for root pages. But this new site I need to use just one.

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS