I have a scenario and I'm struggling with the best way to implement it using Rad Ajax controls.
The system I have has a very custom single sign on process with multiple redirects and code execution. Here is the current flow:
1. Enter info, click Login button
2. Redirect to Site 2
3. Site 2 does it's thing (outside of my control)
4. Site 2 redirects back to Page 2 on Site 1
5. Page 2 does all sorts of processing, multiple web service calls to multiple sites
6. Upon completion, Redirect to Site 3
7. Site 3 does its thing (I have control of this site and on same server as Site 1)
8. Site 3 redirects back to Site 1
9. Done
This whole process takes anywhere from 5-35 seconds on different computers, connections, etc. So I'm trying to figure out a way to give the user a better experience. Currently, the browser does not display any other pages other than Page 1 on Site 1. All of the other redirects and pages listed above are simply blank pages with code behind. So the user doesn't even know they are being redirected multiple times.
I'm almost 99% sure I can't do anything with Ajax when it involves redirects...? If that assumption is correct, my only option is to do something with Step 5 above. Since Page 2 on Site 1 does all the code processing, web service calls, etc. I am thinking I can Ajax that page. Currently all the code for that page simply executes on page load, then redirects.
How can I put an Ajax Loading Panel on the page and get it to fire on Page_Load, have all the code execute, and then redirect when finished? My initial thought is to put a timer on Page_Load that will basically pause things for a split second, once the timer completes it would fire off the function that handles the code execution (and the Loading Panel display), once the code execution completes it would redirect as normal.
I'm looking for the best implementation here, so even if I'm way off base, I'd appreciate any ideas. Thanks.
The system I have has a very custom single sign on process with multiple redirects and code execution. Here is the current flow:
1. Enter info, click Login button
2. Redirect to Site 2
3. Site 2 does it's thing (outside of my control)
4. Site 2 redirects back to Page 2 on Site 1
5. Page 2 does all sorts of processing, multiple web service calls to multiple sites
6. Upon completion, Redirect to Site 3
7. Site 3 does its thing (I have control of this site and on same server as Site 1)
8. Site 3 redirects back to Site 1
9. Done
This whole process takes anywhere from 5-35 seconds on different computers, connections, etc. So I'm trying to figure out a way to give the user a better experience. Currently, the browser does not display any other pages other than Page 1 on Site 1. All of the other redirects and pages listed above are simply blank pages with code behind. So the user doesn't even know they are being redirected multiple times.
I'm almost 99% sure I can't do anything with Ajax when it involves redirects...? If that assumption is correct, my only option is to do something with Step 5 above. Since Page 2 on Site 1 does all the code processing, web service calls, etc. I am thinking I can Ajax that page. Currently all the code for that page simply executes on page load, then redirects.
How can I put an Ajax Loading Panel on the page and get it to fire on Page_Load, have all the code execute, and then redirect when finished? My initial thought is to put a timer on Page_Load that will basically pause things for a split second, once the timer completes it would fire off the function that handles the code execution (and the Loading Panel display), once the code execution completes it would redirect as normal.
I'm looking for the best implementation here, so even if I'm way off base, I'd appreciate any ideas. Thanks.