Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > slow page load - empty code behind

Reply
Thread Tools

slow page load - empty code behind

 
 
Martin Eyles
Guest
Posts: n/a
 
      06-05-2006
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


 
Reply With Quote
 
 
 
 
Martin Eyles
Guest
Posts: n/a
 
      06-05-2006
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" <> wrote in message
news:...
> 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
>



 
Reply With Quote
 
 
 
 
Marina Levit [MVP]
Guest
Posts: n/a
 
      06-05-2006
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" <> wrote in message
news:...
> 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
>



 
Reply With Quote
 
Martin Eyles
Guest
Posts: n/a
 
      06-05-2006
"Marina Levit [MVP]" <> wrote in message
news:...
> 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" <> wrote in message
> news:...
>> 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



 
Reply With Quote
 
Marina Levit [MVP]
Guest
Posts: n/a
 
      06-05-2006
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" <> wrote in message
news:...
> "Marina Levit [MVP]" <> wrote in message
> news:...
>> 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" <> wrote in message
>> news:...
>>> 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

>
>



 
Reply With Quote
 
Martin Eyles
Guest
Posts: n/a
 
      06-05-2006
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]" <> wrote in message
news:...
> 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" <> wrote in message
> news:...
>> "Marina Levit [MVP]" <> wrote in message
>> news:...
>>> 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" <> wrote in message
>>> news:...
>>>> 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

>>
>>

>
>



 
Reply With Quote
 
Marina Levit [MVP]
Guest
Posts: n/a
 
      06-05-2006
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" <> wrote in message
news:...
> 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]" <> wrote in message
> news:...
>> 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" <> wrote in message
>> news:...
>>> "Marina Levit [MVP]" <> wrote in message
>>> news:...
>>>> 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" <> wrote in message
>>>> news:...
>>>>> 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
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Martin Eyles
Guest
Posts: n/a
 
      06-06-2006
"Marina Levit [MVP]" <> wrote in message
news:%23w$...
> 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" <> wrote in message
> news:...
>> 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]" <> wrote in message
>> news:...
>>> 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" <> wrote in message
>>> news:...
>>>>
>>>> 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.



 
Reply With Quote
 
Martin Eyles
Guest
Posts: n/a
 
      06-06-2006
"Martin Eyles" <> wrote in message
news:...
> "Marina Levit [MVP]" <> wrote in message
> news:%23w$...
>> 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" <> wrote in message
>> news:...
>>> 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]" <> wrote in message
>>> news:...
>>>> 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" <> wrote in message
>>>> news:...
>>>>>
>>>>> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: slow slow slow! Expert lino fitter Computer Support 0 12-10-2008 02:33 PM
Code Behind File Function ASP.NET 2.0 Page Load ABHIJIT B ASP .Net 2 03-07-2008 09:59 PM
Non-code behind to code behind John ASP .Net 2 02-19-2007 07:08 PM
How to: load a web page into new browser window via code behind? Rob R. Ainscough ASP .Net 2 04-04-2006 03:49 PM
Re: Code Behind vs. no code behind: error Ben Miller [msft] ASP .Net 1 06-28-2003 01:46 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57