S
Shane Bishop
I've been fighting with the Page_Load event firing twice.
I looked through this user group and saw several other people having
similar problems.
There were various reasons for it:
AutoEventWireup="true" instead of AutoEventWireup="false"
Spyware software
And having your events all wired wrong
I had done everything to my machine, stripped it down to just have
..NET on it and I was still having this problem until...
I changed the page name.
That's right, I changed the page name from default.aspx to index.aspx.
It doesn't happen any more.
I'm not for sure why, but when I would create a default.aspx, VS.NET
would give it a code behind page with a class name of _Default.
Even when I changed the page name to index.aspx, I still had the
default.aspx page in the directory. After the Page_Load event would
fire in index.aspx it would also fire in default.aspx even though I
wasn't hitting that page.
VERY WIERD!!!!!
So noone has to go through the trial/error I had to go through, try
this if you are having the same trouble.
If anyone can explain this phenomenon to me, I would greatly
appreciate it!
I looked through this user group and saw several other people having
similar problems.
There were various reasons for it:
AutoEventWireup="true" instead of AutoEventWireup="false"
Spyware software
And having your events all wired wrong
I had done everything to my machine, stripped it down to just have
..NET on it and I was still having this problem until...
I changed the page name.
That's right, I changed the page name from default.aspx to index.aspx.
It doesn't happen any more.
I'm not for sure why, but when I would create a default.aspx, VS.NET
would give it a code behind page with a class name of _Default.
Even when I changed the page name to index.aspx, I still had the
default.aspx page in the directory. After the Page_Load event would
fire in index.aspx it would also fire in default.aspx even though I
wasn't hitting that page.
VERY WIERD!!!!!
So noone has to go through the trial/error I had to go through, try
this if you are having the same trouble.
If anyone can explain this phenomenon to me, I would greatly
appreciate it!