Welcome Guest Search | Active Topics | Sign In | Register

Callback panel Redirect to Relative URLs Options
Loren Dorez
Posted: Tuesday, October 6, 2009 4:56:35 PM
Rank: Advanced Member
Groups: Member

Joined: 1/9/2009
Posts: 97
It appears the Callback panel redirect can not handle relative urls which could be a useful feature for people like me who place folder within folder etc.

As a regular Response.Redirect("~/TEST/TEST.aspx")
CallBackPanel.Redirect("../../../TEST/TEST.aspx")

It would be easier if we could use ~ instead of ../ X times
eo_support
Posted: Tuesday, October 6, 2009 5:38:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,200
Hi,

Thanks for the suggestion. I believe Response.Redirect also works with the latest CallbackPanel control. Have you tried that?

Thanks
Loren Dorez
Posted: Monday, October 19, 2009 5:39:28 PM
Rank: Advanced Member
Groups: Member

Joined: 1/9/2009
Posts: 97
Yes i have. I was under the impression though that it was best to use the callback panels redirect option is this not the case anymore?
eo_support
Posted: Monday, October 19, 2009 6:03:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,200
Hi,

That is not the case any more. CallbackPanel.Redirect was implemented before Response.Redirect was supported. Once Response.Redirect was supported, CallbackPanel.Redirect has no more use. We do believe it makes sense to extend it support relative path as Response.Redirect does because the method is already there though.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.