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.
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).
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).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.