I look at this:
public interface IAjaxCallbackEventHandler : ICallbackEventHandler { string CallbackResponse { get; set; } } }
So, the pages implement this interface and look like this:
public partial class XPage : Page, IAjaxCallbackEventHandler {
As far as I can tell, this interface simply guarantees that the programmer will have to think about saving the response from RaiseCallbackEvent so that later it is returned from the call to GetCallbackResult .
I do not see any real advantages for this technique, since you already need to implement and think about two methods that do this.
Are your thoughts any real benefits to this approach, or is it just the smell of code?
source share