User Profile & Activity

roi ukashi Member
Page
of 4
Posted: December 5, 2013 4:36 AM

Barnard Hi, 


Page_load would not work, neither by using Response.Redirect or by adding a redirect javascript function for that matter, simply because the flypostback occurs behind the scene. 

You must attach a javascript function to the control by using: 

WebButton.ClientAction.InvokeScript("Redirect()");

Since I need it to occure for every WebButton that does a flypostback, I need to overried the it's Click event in the base page.


Any suggestions how I do that?




Posted: December 3, 2013 2:02 AM

Bernard Hi, 

Thank you very much for your kind answer. Though it is not quite what I ment. 

I'd like to check session availability on server side (using inherited page base), for all intersoft's controls that use FlyPostBack, without actually checking session for each event. 

In case the session has ended, I would like to cancel the AJAX request made by the flypostback, and redirect the user to login page. 


Is there a way to actually cancel the AJAX request and inject a javascript redirection?


Posted: December 3, 2013 1:57 AM
Thank you very much!
All times are GMT -5. The time now is 11:19 PM.
Previous Next