LA.NET [EN]
Ramblings about C#, .NET and Programming
Browse by Tags
All Tags
»
MS AJAX
(
RSS
)
ASP.NET
Books
C#
Javascript
Trivia
WCF
WF
WPF
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...
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...
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...
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...
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...
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...
DataViews, DataViews and more DataViews: DataViews everywhere!
Thu, Oct 29 2009 16:19
Ok, I think this title might have caught your attention! (at least, that’s what I’m hopping for!). This post is a direct consequence of another discussion with a friend regarding the use of the DataView control. He told me something like this: “well, DataViews are cool…can’t deny it…but it’s only for listing items and that means it’s only usable for grids…” Aha...
Read More...
DataView and remote web service invocation: adapting the data returned from the server
Thu, Oct 29 2009 11:20
Yesterday I’ve ended up receiving an interesting question regarding the code I’ve used in the posts which explain how to get data from a remote web service. The question was: how do we adapt the data returned from the web service before it is used by the DataView for rendering its HTML? This is an interesting question. Fortunately, the answer is not really complicated...
Read More...
Using the fetchParameters property to pass values to the web service method
Wed, Oct 28 2009 16:38
In the previous posts , we’ve seen how to configure the DataView control so that it gets the data from a remote web service. In this post, we’ll see how we can take advantage of the fetchParameters to pass info to the web service. The idea is simple: we’ll update the previous sample so that it renders a table with clickable headers used for sorting the displayed...
Read More...
Feeding the DataView control with data returned from a Web Service – take II
Wed, Oct 28 2009 15:48
In the previous post , we’ve seen how we can configure the DataView control to get data returned from a web service. The previous approach is a good one if you don’t intend to use a proxy to a web service. However, suppose you’ve already have a web service proxy and that you want to reuse it for getting the data that is needed by the DataView…in that case, the...
Read More...
More Posts
Next page »
Search
Go
This Blog
Home
Contact
About
Tags
ASP.NET
Books
C#
DDD
Design by Contract
Gadgets
Javascript
JQuery
MS AJAX
Multithreading
MVC
NHibernate
Parallel Extensions
PowerShell
S#arp
Silverlight
Tools
Trivia
VS
VS 2010
WCF
WF
Windows 7
WPF
XAML
Community
Home
Blogs
Media
Groups
Archives
November 2009 (35)
October 2009 (70)
September 2009 (35)
August 2009 (52)
July 2009 (48)
June 2009 (48)
May 2009 (44)
April 2009 (39)
March 2009 (39)
February 2009 (23)
January 2009 (22)
December 2008 (18)
November 2008 (20)
October 2008 (22)
September 2008 (31)
August 2008 (3)
July 2008 (25)
June 2008 (26)
May 2008 (30)
April 2008 (5)
March 2008 (11)
February 2008 (9)
January 2008 (15)
December 2007 (10)
November 2007 (20)
October 2007 (19)
September 2007 (29)
August 2007 (12)
July 2007 (20)
June 2007 (33)
May 2007 (44)
April 2007 (28)
March 2007 (27)
February 2007 (21)
January 2007 (37)
December 2006 (8)
November 2006 (17)
October 2006 (14)
September 2006 (5)
August 2006 (7)
July 2006 (4)
Syndication
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go
News
My books