10
Reply

what is the difference between response.redirect() and navigateurl?

rakesh chengeshpur

rakesh chengeshpur

Apr 10, 2014
5.2k
1

    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.

    Niranjan Maharana
    July 05, 2014
    2

    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.

    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.

    Sunil Babu
    April 03, 2016
    0

    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.

    Srinivas Pabballa
    August 28, 2015
    0

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

    Rahul Prajapat
    May 26, 2015
    0

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

    Vithal Wadje
    December 31, 2014
    0

    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

    Bhabani Prasad
    May 21, 2014
    0

    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

    Bhabani Prasad
    May 21, 2014
    0

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

    Shweta Lodha
    April 23, 2014
    0

    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.

    Munesh Sharma
    April 15, 2014
    0