page loaded twice

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Werner Kratochwil
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am

page loaded twice

Post by Werner Kratochwil » Tue Dec 14, 2004 3:44 pm

Hi!

Whenever I include a WebChart into my page, the page is loaded twice.
Meaning the Load Event of the Page occurs twice and therefore the
Page_Load function is called twice.
My Page_Load function and functions that are called by this contain a
lot of complicated operations and a double call of this function means
loss of speed - which I am desperately trying to improve.

When I leave out the WebChart or set its visibility to false, the
Page_Load is only called once as it should be.
Even in a Page that only contains a WebChart, the error occurs.
And even if I call that page seperately, with copying the SessionId and
stuff, the load function is called double.

If I move this Page with only the WebChart to another directory, the
error does not occur, even if the Global.asax.* files are there.
That's why I can't give a link to an error file.

I upgraded to 1.1.1769.19457, but still loaded double.

Has anybody got any clue, what the problem could be?

Thanks in advance
Werner

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Dec 15, 2004 12:39 am

Hi Werner,

how can I reproduce the problem ? Can you post an example into the steema.public.attachments newsgroup ?
Does this also happens with the example included in the TeeChart for Net installation ?

Werner Kratochwil
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am

Post by Werner Kratochwil » Thu Dec 16, 2004 10:02 am

Hi!

I thought I have found what makes the difference.

Two days ago I experienced the following:
If <identity impersonate="true" /> is set in the web.config and a WebChart is included in the page Page_Load is called twice.

As soon as I removed the line, it worked.

Today I can't reproduce the error, strange isn't it?

Maybe it had to do something with changing the web.config or so?

Could you try with the above entry in web.config? Maybe you can reproduce the error still.

What I did was:
Open a new project. Add a new webchart to it.
Then add this line to the web.config.

Maybe it has something to do with WIN XP SP2. This "offers" some kind of strange behaviour as it seems.

Nice regards
Werner

Post Reply