PC Review


Reply
Thread Tools Rate Thread

base.OnLoad called, OnLoad not executed

 
 
Fabio R.
Guest
Posts: n/a
 
      25th Mar 2005
Every webform in my application inherit from a base custom class.
In this class I override the OnLoad method and call the base.Onload in it.
Sometimes, the OnLoad in the webform is not executed after a form submit
also if the base.OnLoad is called.

It's the same behavior of pressing the "enter" key in a texfield within the
form but I can see the submit button in the Request.Form collection, so is
not that kind of problem.

Today I get the same behavior using the "back" and the "next" browser's
buttons:
- I submitted the form and it worked
- then I got back to the form page (with the "back" browser's button)
- then I got back to form's previous page (with the "back" browser's button)
- finally I returned to the form page (with the "next" browser's button)
- here I submitted the form again but the OnLoad function of the form page
isn't executed at all (while base.OnLoad was called) .

I already encountered this random problem during normal site navigation, the
above example is a strange way to reproduce it.

I've also deleted all code in the OnLoad method of the custom base class,
leaving only a base.OnLoad (e) call.

Anyone has encountered the same problem or know how to solve it?
Thanks in advance,
Fabio


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Are event callback delegates executed executed in a separate thread???? Bob Rock Microsoft C# .NET 4 15th Jul 2004 11:30 AM
.NET 1.1 Problem : Javascript not being triggered on onload event of a modal page =?Utf-8?B?RGVhbm5lIEQnU291emE=?= Microsoft Dot NET 0 20th May 2004 08:41 AM
Setting focus in OnLoad not working Daniel Carlsson Microsoft Dot NET Framework Forms 7 14th May 2004 04:03 AM
onload event does not fire in IE 6.0.3790.0 steve Windows XP Internet Explorer 1 31st Mar 2004 06:25 AM
OnLoad (dropdownlist) is executed before OnClick (Button) Veerle Microsoft ASP .NET 2 11th Mar 2004 08:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:18 AM.