K
KJ
This is kind of hard to explain but I have a [composite control] The
controls are created with CreateChildControls(). Now let say I click a
button and an error occurs in the control. If I throw it up it goes
back to the web form. where do I catch the exception at?
Example
Webform
Composite Control
but_click
Throw e as exception
Then the exception goes back up the chain until it gets to the
webform. Can I catch the exception in any event on the webform?
Because after it get pass the control the chain is broken.
Or do I have to pass it as a parameter like RaiseEvent Click(Me, e,
exception)?
I hope this is clear. If anyone know of a good resource for throwing
exception from composite controls let me know.
controls are created with CreateChildControls(). Now let say I click a
button and an error occurs in the control. If I throw it up it goes
back to the web form. where do I catch the exception at?
Example
Webform
Composite Control
but_click
Throw e as exception
Then the exception goes back up the chain until it gets to the
webform. Can I catch the exception in any event on the webform?
Because after it get pass the control the chain is broken.
Or do I have to pass it as a parameter like RaiseEvent Click(Me, e,
exception)?
I hope this is clear. If anyone know of a good resource for throwing
exception from composite controls let me know.