473,378 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

slow page load - empty code behind

Hi,

I have a .aspx page, but have not done any codeBehind for it. I use
javascript to open this page, and on my development server this is fine.
However, when I copy all the files to another server, and try running the
same thing there, the page takes an age to load. (Note, the pop-up window
opens quickly, but it takes a long time before the page opens in the
pop-up).

Does anyone have any idea why this is happening? Is there a problem with the
way I am deploying the application (copying the files in a folder in my
wwwroot to the other pc's wwwroot)?

Thanks,
Martin
Jun 5 '06 #1
8 1140
Also, I've noticed one of my scripts doesn't work on one PC, but works on
another. After investigating, found that on one server, the form my script
references gets the id "__aspnetForm" and on the other it gets the id
"Menu1_Form1". Any ideas why the form name have different IDs?

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
Hi,

I have a .aspx page, but have not done any codeBehind for it. I use
javascript to open this page, and on my development server this is fine.
However, when I copy all the files to another server, and try running the
same thing there, the page takes an age to load. (Note, the pop-up window
opens quickly, but it takes a long time before the page opens in the
pop-up).

Does anyone have any idea why this is happening? Is there a problem with
the way I am deploying the application (copying the files in a folder in
my wwwroot to the other pc's wwwroot)?

Thanks,
Martin

Jun 5 '06 #2
It sounds like ASP.NET is restarting. Is this only the first time that
takes so long, right after you copy - or every time?

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
Hi,

I have a .aspx page, but have not done any codeBehind for it. I use
javascript to open this page, and on my development server this is fine.
However, when I copy all the files to another server, and try running the
same thing there, the page takes an age to load. (Note, the pop-up window
opens quickly, but it takes a long time before the page opens in the
pop-up).

Does anyone have any idea why this is happening? Is there a problem with
the way I am deploying the application (copying the files in a folder in
my wwwroot to the other pc's wwwroot)?

Thanks,
Martin

Jun 5 '06 #3
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:e7**************@TK2MSFTNGP05.phx.gbl...
It sounds like ASP.NET is restarting. Is this only the first time that
takes so long, right after you copy - or every time?
It is quicker after the first time. Thanks for pointing this out.

This is however was masking another problem, which I have put in a reply to
the original message. any help there would also be appreciated.

Martin
"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
Hi,

I have a .aspx page, but have not done any codeBehind for it. I use
javascript to open this page, and on my development server this is fine.
However, when I copy all the files to another server, and try running the
same thing there, the page takes an age to load. (Note, the pop-up window
opens quickly, but it takes a long time before the page opens in the
pop-up).

Does anyone have any idea why this is happening? Is there a problem with
the way I am deploying the application (copying the files in a folder in
my wwwroot to the other pc's wwwroot)?

Thanks,
Martin

Jun 5 '06 #4
Sorry, I've never heard of something like that happening. I don't know why
the server would be generating a different name for the form based on the PC
the request came from, unless you have some code there to change this.

I would put together a very simple page, and see if the problem still
happens. If not, I would see what this page is doing that would cause this
type of effect.

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:e7**************@TK2MSFTNGP05.phx.gbl...
It sounds like ASP.NET is restarting. Is this only the first time that
takes so long, right after you copy - or every time?


It is quicker after the first time. Thanks for pointing this out.

This is however was masking another problem, which I have put in a reply
to the original message. any help there would also be appreciated.

Martin
"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
Hi,

I have a .aspx page, but have not done any codeBehind for it. I use
javascript to open this page, and on my development server this is fine.
However, when I copy all the files to another server, and try running
the same thing there, the page takes an age to load. (Note, the pop-up
window opens quickly, but it takes a long time before the page opens in
the pop-up).

Does anyone have any idea why this is happening? Is there a problem with
the way I am deploying the application (copying the files in a folder in
my wwwroot to the other pc's wwwroot)?

Thanks,
Martin


Jun 5 '06 #5
OK, I have taken a look at the system. The way it works is that there is a
page, and 1 custom control. The main page doesn't have a form, but the
control does. The name of the form on my development server is __aspnetForm,
and the name of the form on the server I deploy to is of the form
controlInstanceName_Form1.

Does this help the diagnosis?

Thanks,
Martin

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:eN*************@TK2MSFTNGP03.phx.gbl...
Sorry, I've never heard of something like that happening. I don't know
why the server would be generating a different name for the form based on
the PC the request came from, unless you have some code there to change
this.

I would put together a very simple page, and see if the problem still
happens. If not, I would see what this page is doing that would cause
this type of effect.

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:e7**************@TK2MSFTNGP05.phx.gbl...
It sounds like ASP.NET is restarting. Is this only the first time that
takes so long, right after you copy - or every time?


It is quicker after the first time. Thanks for pointing this out.

This is however was masking another problem, which I have put in a reply
to the original message. any help there would also be appreciated.

Martin
"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
Hi,

I have a .aspx page, but have not done any codeBehind for it. I use
javascript to open this page, and on my development server this is
fine. However, when I copy all the files to another server, and try
running the same thing there, the page takes an age to load. (Note, the
pop-up window opens quickly, but it takes a long time before the page
opens in the pop-up).

Does anyone have any idea why this is happening? Is there a problem
with the way I am deploying the application (copying the files in a
folder in my wwwroot to the other pc's wwwroot)?

Thanks,
Martin



Jun 5 '06 #6
What if someone placed 2 of these controls on one page? You would end up
with 2 server side forms - which you can't have.

The typical way this is handled, is to have the form on the page, and the
user control, or web control, is simply placed on the page and becomes part
of its form.

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
OK, I have taken a look at the system. The way it works is that there is a
page, and 1 custom control. The main page doesn't have a form, but the
control does. The name of the form on my development server is
__aspnetForm, and the name of the form on the server I deploy to is of the
form controlInstanceName_Form1.

Does this help the diagnosis?

Thanks,
Martin

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:eN*************@TK2MSFTNGP03.phx.gbl...
Sorry, I've never heard of something like that happening. I don't know
why the server would be generating a different name for the form based on
the PC the request came from, unless you have some code there to change
this.

I would put together a very simple page, and see if the problem still
happens. If not, I would see what this page is doing that would cause
this type of effect.

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:e7**************@TK2MSFTNGP05.phx.gbl...
It sounds like ASP.NET is restarting. Is this only the first time that
takes so long, right after you copy - or every time?

It is quicker after the first time. Thanks for pointing this out.

This is however was masking another problem, which I have put in a reply
to the original message. any help there would also be appreciated.

Martin

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
> Hi,
>
> I have a .aspx page, but have not done any codeBehind for it. I use
> javascript to open this page, and on my development server this is
> fine. However, when I copy all the files to another server, and try
> running the same thing there, the page takes an age to load. (Note,
> the pop-up window opens quickly, but it takes a long time before the
> page opens in the pop-up).
>
> Does anyone have any idea why this is happening? Is there a problem
> with the way I am deploying the application (copying the files in a
> folder in my wwwroot to the other pc's wwwroot)?
>
> Thanks,
> Martin



Jun 5 '06 #7
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
What if someone placed 2 of these controls on one page? You would end up
with 2 server side forms - which you can't have.
Why not?
The typical way this is handled, is to have the form on the page, and the
user control, or web control, is simply placed on the page and becomes
part of its form.
OK, will try this, and will hopefully work. Thanks.
"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
OK, I have taken a look at the system. The way it works is that there is
a page, and 1 custom control. The main page doesn't have a form, but the
control does. The name of the form on my development server is
__aspnetForm, and the name of the form on the server I deploy to is of
the form controlInstanceName_Form1.

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:eN*************@TK2MSFTNGP03.phx.gbl...
Sorry, I've never heard of something like that happening. I don't know
why the server would be generating a different name for the form based
on the PC the request came from, unless you have some code there to
change this.

I would put together a very simple page, and see if the problem still
happens. If not, I would see what this page is doing that would cause
this type of effect.

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...

This is however was masking another problem, which I have put in a
reply to the original message. any help there would also be
appreciated.

Jun 6 '06 #8
"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
The typical way this is handled, is to have the form on the page, and the
user control, or web control, is simply placed on the page and becomes
part of its form.


OK, will try this, and will hopefully work. Thanks.


Works beautifully. I now have a form with id="Form1" on all pages.

Once again, thanks! :-)

Martin
"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
OK, I have taken a look at the system. The way it works is that there is
a page, and 1 custom control. The main page doesn't have a form, but the
control does. The name of the form on my development server is
__aspnetForm, and the name of the form on the server I deploy to is of
the form controlInstanceName_Form1.

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:eN*************@TK2MSFTNGP03.phx.gbl...
Sorry, I've never heard of something like that happening. I don't know
why the server would be generating a different name for the form based
on the PC the request came from, unless you have some code there to
change this.

I would put together a very simple page, and see if the problem still
happens. If not, I would see what this page is doing that would cause
this type of effect.

"Martin Eyles" <ma**********@NOSPAMbytronic.com> wrote in message
news:12*************@corp.supernews.com...
>
> This is however was masking another problem, which I have put in a
> reply to the original message. any help there would also be
> appreciated.

Jun 6 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Vito DeCarlo | last post by:
I've been having this problem for a few weeks. PLEASE read this post before responding with some simple reason that has nothing to do with my problem. If you need more information, please request...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
0
by: Oz | last post by:
Hi Using VS.NET 2003, Windows XP SP1, We have a page which has been developed using ASP.NET. On it, is a button which when clicked is supposed to add some data to a table. When the button is...
8
by: aualias | last post by:
I am rewriting a web page that was previously done with ColdFusion. It has a DataGrid and one column in the DataGrid is a dropdown list which is the same for all rows. The ItemDataBound code...
4
by: Learner | last post by:
Hello, Here is a little bit of what I am working ... I have selected Header and Side lay out for my Master Page. All my links go on the Side and the content on to the right pane. I have no...
3
by: JosephByrns | last post by:
I have an asp.net application, on first load the page is slow to load. The next time I go to the page it is fast, then fast again then back to slow. The number of times it is slow seems to be time...
9
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App...
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.