blinking after redirecting to another page

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/6/2012 10:11:55 AM
Gravatar
Total Posts 4

blinking after redirecting to another page

Dear developers,

I have one question. With redirecting to another page (by clicking a button or text on the site) you see first

a white blink before the new page is loaded.

Does someone know why this is and how I can solve this that I don't see it anymore by redirecting?

 

In advance, thank you very much.

Frits

4/9/2012 11:04:08 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: blinking after redirecting to another page

What code are you using for the redirect? Does it happen in all browsers?

4/10/2012 8:36:01 AM
Gravatar
Total Posts 4

Re: blinking after redirecting to another page

Thank you for your response.


Method I'm using: SiteUtils.RedirectToUrl(url). It's happen in IE 9.

Regards,

Frits

4/10/2012 8:51:35 AM
Gravatar
Total Posts 18439

Re: blinking after redirecting to another page

Hi Frits,

That method does a soft redirect which means code after the redirect may still be executed, you should always follow a call to that method with return; to prevent any other code below it from executing, or else use Response.Redirect(url,true); which does a hard redirect.

Also only use redirects when you really need them, ie don't use buttons that only do navigation by redirecting, it ok to redirect after completing some processing in a button click event but if all the button does is redirect it is better to replace it with an ordinary link and avoid the redirect.

If the problem only happens in IE then you may be able to solve it by using page transitions in the <head> of layopiut.master like this:

<!--[if IE]>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
<![endif]-->

Hope that helps,

Joe

4/10/2012 8:56:05 AM
Gravatar
Total Posts 4

Re: blinking after redirecting to another page

Hi Joe,

Thank you, I'm going to try this.

 

Regards,

Frits

4/20/2012 1:50:25 PM
Gravatar
Total Posts 4

Re: blinking after redirecting to another page

It worked, thank you very much :))

regards,

Frits

You must sign in to post in the forums. This thread is closed to new posts.