By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

Canceling Subsequent events from page_load

P: n/a
How can I prevent subsequent events from firing when I have an error in the
page_load event?

Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Can you elaborate? What do you want to happen? WHat should be rendered to
the client?

-Brock
DevelopMentor
http://staff.develop.com/ballen
How can I prevent subsequent events from firing when I have an error
in the page_load event?

Nov 19 '05 #2

P: n/a
This is when there is a postback. a command button is clicked, the page_load
event catches an error and produces an error message and sets the
errorlabel.visible to true and then exits the sub. At that point I want to
render the page. But right now it continues on to the command button
handler.

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
Can you elaborate? What do you want to happen? WHat should be rendered to
the client?

-Brock
DevelopMentor
http://staff.develop.com/ballen
How can I prevent subsequent events from firing when I have an error
in the page_load event?


Nov 19 '05 #3

P: n/a
You can keep a boolean field in your page that is set in the Load event and
then checked in the Button command event. The other idea might to simply
check the error Label's Visible bit (instead of kepping a seperate boolean
on the page).

-Brock
DevelopMentor
http://staff.develop.com/ballen
This is when there is a postback. a command button is clicked, the
page_load event catches an error and produces an error message and
sets the errorlabel.visible to true and then exits the sub. At that
point I want to render the page. But right now it continues on to the
command button handler.

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
Can you elaborate? What do you want to happen? WHat should be
rendered to the client?

-Brock
DevelopMentor
http://staff.develop.com/ballen
How can I prevent subsequent events from firing when I have an error
in the page_load event?

Nov 19 '05 #4

P: n/a
Thank you
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
You can keep a boolean field in your page that is set in the Load event
and then checked in the Button command event. The other idea might to
simply check the error Label's Visible bit (instead of kepping a seperate
boolean on the page).

-Brock
DevelopMentor
http://staff.develop.com/ballen
This is when there is a postback. a command button is clicked, the
page_load event catches an error and produces an error message and
sets the errorlabel.visible to true and then exits the sub. At that
point I want to render the page. But right now it continues on to the
command button handler.

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
Can you elaborate? What do you want to happen? WHat should be
rendered to the client?

-Brock
DevelopMentor
http://staff.develop.com/ballen
How can I prevent subsequent events from firing when I have an error
in the page_load event?


Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.