Raising events from objects to a web form ?

B

Bren

I am having problems with custom events raised by an object, if an
aspx form is the event sink - I had posted earlier about this and
found I was having problems changes in the UI not reflected after the
event has fired - I am pretty confident that the event is coded in
the class correctly, and the event is being captured in the form -
does anyone know of any issues that I should be aware of with this
kind of event handling in a web form, as opposed to more standard
handling of control events ?? any ideas much appreciated or any
references to a good example as I can't seem to find one...
 
N

NoOne

1. Where and when is the object created?
2. Where and when is the event fired from the object?
 
B

Brendan Ryan

the object is created during the Page Load and the handler for the event
is added. the event is fired when we change a property in the object -
this change is caused by the user selecting a value in a dop down list,
which causes a post back to the page, - the value selected is then
passed thru to the object in a 'Set' acessor - some basic evaluation
goes on against some business rules, and depending on the result we fire
the event. - I could code around this quite easily, but we want to use
this design to handle some more complex things going on in our business
objects, that gives output in the UI.
 
B

Brendan Ryan

the object is created during page load and the eventhandler is also
added. the event fires when a property is et o the object - the user
emters info in the UI that causes a postback - the info is passed to the
object and some business rules applied - depending on the result the
event is fired.
 
B

Bren

NoOne said:
1. Where and when is the object created?
2. Where and when is the event fired from the object?

the object is created during page load and the eventhandler is also
added. the event fires when a property is et o the object - the user
emters info in the UI that causes a postback - the info is passed to
the object and some business rules applied - depending on the result
the event is fired.
 

Ask a Question

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.

Ask a Question

Top