Home Search Member List Faq Register Login  
UltimateAjax
use of Reponse.redirect or Server.transer not work in codebehind

Thread Starter: geronimo1789   Started: 03-22-2009 2:30 AM   Replies: 2
 Karamasoft Support Forums » General Discussions » UltimateAjax » use of Reponse.redirect or Server.transer not work in codebehind
 Printable Version    « Previous Thread   Next Thread »
  22 Mar 2009, 2:30 AM
geronimo1789 is not online. Last active: 4/1/2012 10:19:32 AM geronimo1789

Top 10 Posts
Joined on 12-19-2008
Posts 54
use of Reponse.redirect or Server.transer not work in codebehind
Hi,

I use ultimate ajax, it's work well, but when after a callback to the server, I make a server.transfer or response.redirect, to another page, it still remain on the page where I use UltimateAjaX.

On Page1.asxp I make

DoUltimateCallback('UltimateAjax1', '', ClientResultCallback, ClientErrorCallback);



On the codebehind I make

response.redirect ("Page2.aspx") or server.transfer("Page2.aspx")

After the comeback I still stay on Page1.aspx


How can I do to have the Page2.aspx display unstead of Page1.aspx


Thanks


  
  23 Mar 2009, 4:46 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: use of Reponse.redirect or Server.transer not work in codebehind
You can't use response redirect or server transfer inside the Callback event handler of UltimateAjax. Instead of server-side redirect, you can try client-side redirect (window.location.href = 'newurl') in client result callback event handler. Visit the Callback Result sample at http://www.karamasoft.com/Samples.aspx?component=UltimateAjax&sample=CallbackResult and look at the code to see how ClientResultCallback and ClientErrorCallback client-side event handlers can be implemented.
  
  23 Mar 2009, 11:49 PM
geronimo1789 is not online. Last active: 4/1/2012 10:19:32 AM geronimo1789

Top 10 Posts
Joined on 12-19-2008
Posts 54
Re: use of Reponse.redirect or Server.transer not work in codebehind
Hi,

Thank for the answer, but I do not want to come back to the client side, to open the new page, so I made a Submit and it is OK.

  
 Page 1 of 1 (3 items)
Karamasoft Support Forums » General Discussions » UltimateAjax » use of Reponse.redirect or Server.transer not work in codebehind

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.