Hi,
I am working with
ASP.NET 4.0 Preview 6 and I need to generate
Javascript for a specific scenario. Preview 6 has a Class called
Observer and many other new classes. The lastest version of
ScriptSharp uses an older version of Sys namespace that does not
support this version.
Using the annotations [IgnoreNamespace], [Imported] and
[GlobalMethods] I could create a class in Sys namespace called
Observer that allows me to generate javascript code for the Observer
Class. It is working Ok.
Now I have created an object that must be observed. As you know we
must use a methods like beginupdate to signal the start of the update
of an observable object, setvalue to change the object and end update
to finish. How can I do it the object is objecta I must generate
javascriopt to do the following thing:
objecta.beginupdate;
objecta.setvalue("property1", newvalue1);
objecta.setvalue("property2", newvalue2);
objecta.endupdate;
What could the best practice to use
ASP.NET 4.0 Preview 6 with
ScriptSharp and make this and many other things work.
Thanks in advance