Browse by Tags

oh, gosh! SO many ways to require a script…
Mon, Nov 30 2009 20:45
I’d like to apologize for the lack of posts lately…no, I haven’t given up in my Silverlight series, but I’ve been busy updating my existing ASP.NET book to the 4.0 version. It seems like I will have a lot of work (much more than I had anticipated, but the truth is that I really enjoy writing about technical stuff) so the Silverlight series won’t really go as... Read More...
Some observations on MS AJAX and JQuery integration
Tue, Nov 24 2009 9:16
In my last post , I’ve talked a little bit about the new plugins introduced by the latest release of MS AJAX (beta, at the time of writing). One of the things that didn’t enjoy much was that I had to call the JQuery’s get method in order to get a reference to the DOM element array. What I was forgetting was that MS AJAX has really good integration with JQuery... Read More...
by luisabreu | with no comments
Filed under: ,
MS AJAX beta – new plugins
Mon, Nov 23 2009 14:47
The MS AJAX beta release adds some new plugins to the previous ones. Besides the existing setCommand and bind, we now have access to the following plugins: addHander: you can use this plugin to set up a handler for one event fired by one or several DOM elements; removeHandler: as you can probably guess from its name, you can use this to cancel an existing DOM... Read More...
by luisabreu | with no comments
Filed under: ,
MS AJAX beta – ACT support
Mon, Nov 23 2009 13:35
In the last week, MS AJAX beta was released during PDC 2009 . One of the things that this released added is ACT script loader support. If you go into the samples, you’ll see that there is an Extended folder which holds all the client files for the behaviors and controls exposed by the AjaxControlToolkit. The code files have all been updated so that its' definitions... Read More...
by luisabreu | with no comments
Filed under: ,
MS AJAX Lib beta is out
Fri, Nov 20 2009 14:10
You can get it from here . I’m curious to see if it contains new features… Read More...
No more hacks for the MS AJAX’s binding problem
Fri, Nov 13 2009 9:26
At least, when the RTM version is released! Ok, I guess you need some context: in the previous post , I talked about a problem which was mentioned to me by Andy in the comments of an existing post. The problem was that the __msajaxBindings field ended up being added to an object used in a live binding and that really means trouble when you try to serialize it... Read More...
MS AJAX: bindings and serialization
Wed, Nov 11 2009 19:30
In my “goodbye MS AJAX post”, reader Andy asked a really interesting question : how to serialize an object which is used in a binding relationship? The main problem is that the JavaScriptSerializer doesn’t support circular references. Unfortunately, it doesn’t also provide a way for you to specify which properties should be serialized. However, the problem is... Read More...
The AdoNetDataContext object: what about saving?
Mon, Nov 9 2009 14:34
Well, this really doesn’t deserve any special attention. Ok, let me put it another way: there’s a lot of work going on behind the scenes, but you shouldn’t have to worry with any of it. I’ve thought about writing a post on the objects that end up being used by the AdoNetDataContext to propagate changes back to the server, but after some thought, I’ve give up... Read More...
Getting your ADO.NET Data Services uris right: the easy way
Mon, Nov 9 2009 12:13
Here we are again, for more on the MS AJAX library. In the previous post , we’ve seen that we can interact with ADO.NET Data Services by using the AdoNetDataContext instances. Today, we’ll be looking at more advanced features of the ADO.NET Data Services which are also available in the MS AJAX library. Before going on, I must confess that I’m not really an ADO... Read More...
by luisabreu | with no comments
Filed under: ,
Getting started with the AdoNetDataContext
Mon, Nov 9 2009 10:54
Today we’re going to start looking at the AdoNetDataContext. This class expands the DataContext object and uses several specific methods for ensuring the correct interaction with an existing ADO.NET Data Service. These internal methods added by the AdoNetDataContext are essentially used in identity related operations. In other words, it extends the base DataContext... Read More...
The DataContext component: creating entities
Sun, Nov 8 2009 12:53
Before we can move on and take a look at the AdoNetDataContext component, we need to talk about one more topic: creating entities and how it might be integrated with DataContext component. The DataContext exposes a createEntity method which can be used for  creating new objects of a specific type. Internally, that method will always delegate the creation... Read More...
by luisabreu | with no comments
Filed under: ,
The DataContext component: deferred properties
Sat, Nov 7 2009 21:39
Today we’ll keep looking at the DataContext component and we’ll see how it supports deferred properties. Deferred properties are properties which are lazy loaded as “needed”. Using deferred properties means that the component will try to make a remote call for getting the value of that property. As you’re probably expecting, this means that you’ll have to write... Read More...
by luisabreu | with no comments
Filed under: ,
The DataContext component: linking objects
Thu, Nov 5 2009 11:48
Today we’ll keep going in our study of the DataContext component and we’ll see how we can establish relationships between objects through links. I guess you’re probably asking something like: “Hum…establishing relationships between objects…how about using properties?” For instance, suppose we’re working with person and contact instances from the previous post... Read More...
by luisabreu | with no comments
Filed under: ,
The DataContext component: improving the identity algorithm
Wed, Nov 4 2009 11:20
In the previous post , we’ve started looking at identity and how it’s supported by the DataContext component. Today we’ll improve the initial algorithm so that we’re able to support more advanced scenarios. Even though the first algorithm for identity management was really simple, it ended up showing that identity management ends up adding... Read More...
The DataContext component: getting started with identities
Tue, Nov 3 2009 12:36
We’ve already met several interesting features of the DataContext component. Today we’ll keep going and we’ll start discussing identity. I’m not sure if you’ve noticed, but the DataContext exposes several identity related methods. For instance, the getIdentity method is used by the control to get the identity of an object. In order for you to activate identity... Read More...
The DataContext component: Committing changes – take II
Mon, Nov 2 2009 15:22
In the previous post , we’ve seen how easy it is to commit the changes that are buffered by a DataContext instance. At the time , I said that there were still a couple of things related with the saveChanges method that needed further discussion…and that’s what we’ll do in this post. To illustrate one scenario you might end up facing in the real world, lets assume... Read More...
by luisabreu | with no comments
Filed under: ,
The DataContext component: committing changes
Mon, Nov 2 2009 12:34
Ok, we’ve already seen one option for fetching data from a remote web service. In this post, we’ll see how to commit changes tracked by the DataContext component. Committing buffered changes means that you’ll need to set (at least) two DataContext instance properties: serviceUri and saveOperation. serviceUri identifies the URI of the web service that is responsible... Read More...
The DataContext component: fetching data from a web service
Mon, Nov 2 2009 10:37
Until now, we’ve met some of the basic features introduced by the DataContext component. As I’ve said , you can think of this control as a buffer which keeps track of changes performed to several items it keeps track of. We’ve already seen that we can use the trackData method for initiating a tracking operation. What I haven’t mentioned yet is that you can also... Read More...
The DataContext class: cancelling changes
Mon, Nov 2 2009 9:35
In the previous post , we’ve see how to execute some basic actions over a DataContext instance. In this post we’ll keep looking at the it and we’ll see the available options for working with changes made over the data tracked by the control. Before getting started, we’ll assume that _ctx references an existing DataContext object created previously with the code... Read More...
Getting started with the DataContext object
Fri, Oct 30 2009 12:50
Yesterday, I’ve started looking at the DataContext object. I haven’t still tested all its features (to do that, I still need to take a look at ADO.NET Data Services and study the AdoNetDataContext type), but I’ve already picked up some ideas about it. I guess it’s fair to say that you can think of the DataContext as a buffer which keeps track of the changes ... Read More...
More Posts Next page »


This Blog





Email Notifications


  • View Luis Abreu's profile on LinkedIn

    Follow me at Twitter

    My books

    Silverlight 4.0: Curso Completo

    ASP.NET 4.0: Curso Completo

    Portuguese LINQ book cover

    Portuguese ASP.NET 3.5 book cover

    Portuguese ASP.NET AJAX book cover

    Portuguese ASP.NET AJAX book cover