Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Giuseppe 34 posts 56 karma points
    Nov 22, 2011 @ 12:16
    Giuseppe
    0

    Redirect issue

    Hi All,

    into an usercontrol, I want to redirect to other internal page after a form submit. So I've try in two way;

    Response.Redirect("page.aspx",true)
    Response.Redirect(umbraco.library.NiceUrl(1383),true);

    In both the error is the same, so that "Thread interrupt"

    Do you can help about this?

    Tnx

  • Rodion Novoselov 694 posts 859 karma points
    Nov 22, 2011 @ 12:45
    Rodion Novoselov
    0

    Hi. I'm not absolutely sure it should help, but try to call the Redirect method with the false as the second argument.

  • Giuseppe 34 posts 56 karma points
    Nov 22, 2011 @ 12:55
    Giuseppe
    0

    It's work!

    Thanks a lot Rodion

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 22, 2011 @ 13:35
    Stefan Kip
    0

    Or just keep it to true (which I always use, why wouldn't you want to end the current response?)...

    The exception shouldn't matter, is the statement in a try { } catch { } block?

  • Giuseppe 34 posts 56 karma points
    Nov 22, 2011 @ 14:01
    Giuseppe
    0

    It is in a statement in try/catch block, the issue was reproduced also without "end response" set to true. Work only if it is set to false.

Please Sign in or register to post replies

Write your reply to:

Draft