I just started learning ASP.NET and HTML5, and looking for experts inputs. I'm exploring the possibility of reusing a .NET C# library (data model) that was previously used in a WPF project (a graphical editor) now being ported to HTML5. At the core, the data model library uses the ObservableCollection and ObservableDictionary class extensively, and relies on CollectionChanged and PropertyChanged events to update the views.
So far I've found two ways to access methods on the data model library from Javascript, but still can't figure out how to deal with the events which are essential to the application.
- Using PageMethods in ASP.NET AJAX
- Convert the .NET library to COM and load activeX object with Javascript
Thanks,
DM