D
Dot net work
I've read quite a few threads on these groups about this. When
someone says the following:
"My Page_Load gets called twice on a button click postback"
The replies are:
"Do you have AutoEventWireup=True in your page header?"
In my project, I have this set to false - everywhere.
Also, if I keep repeating exactly the same button click action, over
and over again, sometimes the Page_Init and Page_Load gets called
twice, sometimes it just gets called once. It almost appears to be
random.
More specifically, my aspx page contains several web user controls.
On one web user control I have the button in question, and it's when I
click this, that the Page_Init and Page_Load of another web user
control on the same aspx form either gets called once or twice.
What should I do? Do you think something has got muddled up
internally, and I should delete some files and start again?
Thank you,
Regards, dnw.
someone says the following:
"My Page_Load gets called twice on a button click postback"
The replies are:
"Do you have AutoEventWireup=True in your page header?"
In my project, I have this set to false - everywhere.
Also, if I keep repeating exactly the same button click action, over
and over again, sometimes the Page_Init and Page_Load gets called
twice, sometimes it just gets called once. It almost appears to be
random.
More specifically, my aspx page contains several web user controls.
On one web user control I have the button in question, and it's when I
click this, that the Page_Init and Page_Load of another web user
control on the same aspx form either gets called once or twice.
What should I do? Do you think something has got muddled up
internally, and I should delete some files and start again?
Thank you,
Regards, dnw.