Groups > Application developers > Community Server Source discussions > Re: Attempting to add a PRE-DEFAULT.aspx page (WITH SLOW LOAD TIME)




Attempting to add a PRE-DEFAULT.aspx page (WITH SLOW LOAD
TIME)

Attempting to add a PRE-DEFAULT.aspx page (WITH SLOW LOAD TIME)
Tue, 19 Sep 2006 15:36:34 +000
Hi,

When installing community server out of th box,each page loads with speed
(taking around 2/3 seconds) however when I attempt to create a new page (a
pre-default.aspx page, which is simply a page that contains a few lines of code,
to redirect to the default page) then it takes a good 8/10 seconds to
load!!!!!!!

Do you know any reason for this?

 

------------------------------------------------------



using System;

 

 

namespace CommunityServerWeb 

{

///<summary>

 

 

/// Summary description for IntranetCarouselSkin.

///</summary>

publicclass pre_defaultPage: System.Web.UI.Page 

{

 

privatevoid Page_Load(object sender, System.EventArgs e) 

{ 

Response.Redirect("http://www.google.com";

}

 

 

 

 

#region Web Form Designer generated code 

overrideprotectedvoid OnInit(EventArgs e) 

{

//

 

 

 

 

// CODEGEN: This call is required by the ASP.NET Web Form Designer.

//

InitializeComponent();

base.OnInit(e); 

}

 

///<summary>

 

 

/// Required method for Designer support - do not modify

/// the contents of this method with the code editor.

///</summary>

privatevoid InitializeComponent() 

{ 

this.Load += new System.EventHandler(this.Page_Load); 

}

 

 

 

 

#endregion

}

}

------------------------------------------------------ 

 

Thanks,

Mike. " height="19"
src="http://communityserver.org/emoticons/emotion-42.gif"
width="19" />" height="19"
src="http://communityserver.org/emoticons/emotion-42.gif"
width="19" />
Post Reply
Re: Attempting to add a PRE-DEFAULT.aspx page (WITH SLOW LOAD TIME)
Tue, 19 Sep 2006 19:11:07 +000
a Response.Redirect involves a round trip back to the client browser.  I believe
the server responds with 302 Object Moved.  The browser then follows the
redirect to the URL you specify.  So of course it's going to be slower.
Post Reply
about | contact