best way to redirect users in role to slow loading page

Posted on 2011-09-25
Medium Priority
Last Modified: 2012-05-12
I have a few roles within my web application and although I use master pages, I am currently using a regular aspx form to check roles and then redirect to an htm page which is supposed to show an ajax animation.  
The animation works fine in FF but not in IE.  In addition, this redirecting is real slow and not very appealing.  I would like to use some kind of changing text, and maybe a colored div that slowly moves across the page.  I've seen some examples, moves  but can't figure out how to do it.  
Would this be a faster way of redirecting and if yes, how do I implement, if not what would be the best way to redirect a user to a slow loading page when I also have to deal with roles?

Question by:Sheritlw
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
  • +1
LVL 21

Expert Comment

by:Dale Burrell
ID: 36596775
Are you able to speed up the redirection? Doesn't sound right that it takes that long.

Author Comment

ID: 36596804

I think it takes long because it first has to check multiple roles and then it redirects to an htm page, while on the htm page it has to load some data from the db.
Depending on the internet connection, it can be real slow, so I wanted something that will keep users waiting.
I like the following...http://www.mymatrixfamily.com/ but I don't know how to accomplish this.
LVL 21

Expert Comment

by:Dale Burrell
ID: 36596823
I'd speed it up rather than masking the problem. I suspect your system isn't that large else you would have already mentioned it therefore if its running slow something is wrong somewhere.
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 36596849

Yes, I am aware of some bottlenecks, but what I am looking for is a better way to transition to a slow loading page.  I don't like the way I do it now.
I am looking for some assistance on how to create a better animated transition page.
LVL 25

Expert Comment

ID: 36813654
are you saying that even if somene could go through your code with you and find bottlenecks and help you eliminate them so that the page you are speaking of no longer loads slow but loads fast and so you no longer need a transition page - you are not interested - you want to keep the slow loading page and find a better way to transition?
That may sound sarcastic - I'm just wondering though - yes or no?
LVL 21

Expert Comment

by:Dale Burrell
ID: 36813678
@dgrafx thats the assumption I made :) I can't imagine not being able to optimise that process such speed is not an issue, well I can, I've needed it once, but its a pretty unusual occurrence.

Author Comment

ID: 36814652
I definitely want to optimize pages.   I have already replaced the tab container with a list and divs all handled through javascript.  I have also gone through the view state, images, database tables, and other items.
When I started this project more than a year ago, I was just learning asp.net,  I came from the old school of cobol, basic, vb and then vb.net.  I know there is a lot more optimizing to do, but it's  a
just me and I don't know anyone to help, so I keep reading.
So until I can figure out what else I need to do, I need a transition page, especially after a user logs in.
Below is what I am currently working on.
I am hoping someone will help me with this, so I can continue learning and optimizing.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <link rel="icon" type="image/png" href="/images2020/ScissorIcon.png" />

<div style="margin:20% 5% 20% 5%; background-color:#fcffce; border:solid 2px Purple;">
<h1 align="center" id="scrollme">Please wait while the page loads your information.</h1>

<script type="text/javascript">
    /* <![CDATA[ */
    this.focus(); //focus on new window
    redirect = function() {
        var querystring = window.location.search.substring(1); //query string
        var page = querystring.substring(querystring.indexOf('=') + 1, querystring.length);
        function toPage() {
            if (page !== undefined && page.length > 1) {
                document.write('<!--[if !IE]>--> <head><meta http-equiv="REFRESH" content="1;url=' + page + '" /><\/head><!--<![endif]-->');
                document.write(' \n <!--[if IE]>');
                document.write(' \n <script type="text/javascript">');
                document.write(' \n var version = parseInt(navigator.appVersion);');
                document.write(' \n if (version>=4 || window.location.replace) {');
                document.write(' \n window.location.replace("' + page + '");');
                document.write(' \n } else');
                document.write(' \n window.location.href="' + page + '";');
                document.write(' \n  <\/script> <![endif]-->');
        return {
            begin: toPage
     } ();

    /* ]]> */
    var msgIX = 0
    var msgs = new Array(
 "Once a page has loaded the page will load faster next time.",
 "The text you are looking at has changed.",
 "This is a handy way of sending messages to your users."

    function scrollMessages(milliseconds) {
       window.setInterval("displayMessage()", milliseconds)
    function displayMessage() {
       if (document.getElementById != null) {
          var heading = document.getElementById("scrollme")
          heading.firstChild.nodeValue = msgs[msgIX]
       } else {
          if (navigator.appName == "Microsoft Internet Explorer") {
             var heading = document.all.item("scrollme")
             heading.innerText = msgs[msgIX]
       msgIX %= msgs.length


Open in new window

LVL 83

Accepted Solution

CodeCruiser earned 2000 total points
ID: 36906048

Author Comment

ID: 36914081

Thanks for the links.
I would like to do something like http://www.mymatrixfamily.com/
Hairdressers will be using the app, so I really need something bold that keeps them updated.
Do you know how I would do this in asp.net?

LVL 83

Expert Comment

ID: 36919426
If you right click on that page, you will notice that its all Flash!

Author Comment

ID: 36919503
Oh ok,

Well I found out why my site is still so slowwwww.... My server.
I thank you for your help.
LVL 83

Expert Comment

ID: 36919521
Glad to help :-)

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question