LA.NET [EN]

2009Archive

Nov 16

It seems like CLR 4.0 will introduce a new security model (which looks a lot like the one we’ve got in Silverlight). Shawn Farkas has an excellent post which compares the two rule sets and explains what happens in several scenarios.

Read the rest of this entry »

Nov 16

Getting started with Silverlight

Posted in Silverlight       Comments Off on Getting started with Silverlight

Last Friday, I’ve decided to start looking at Silverlight. This time, I’ve opted for starting with a book (generally, I prefer to go through the source code and run some tests along the way;). As usual, I’ll be writing a couple of posts to describe my experiences with this platform. Even though I don’t have […]

Read the rest of this entry »

Nov 13

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 […]

Read the rest of this entry »

Nov 11

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 […]

Read the rest of this entry »

Nov 09

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 […]

Read the rest of this entry »

Nov 09

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, […]

Read the rest of this entry »

Nov 09

Getting started with the AdoNetDataContext

Posted in Javascript, MS AJAX       Comments Off on Getting started with the AdoNetDataContext

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 class by […]

Read the rest of this entry »

Nov 08

Microsoft Application Architecture Guide

Posted in Architecture       Comments Off on Microsoft Application Architecture Guide

I’m putting this here for future reference.

Read the rest of this entry »

Nov 08

Book review: the design and evolution of C++

Posted in Books       Comments Off on Book review: the design and evolution of C++

I’ve just finished re-reading (I’ve read if for the first time around 2000) this fantastic book which was written by Bjarne Stroustrup, who is the responsible for the design of C++. I haven’t used C++ professionally for over 6 years now! However, I’ve always been fascinated for its power and complexity and I do intend […]

Read the rest of this entry »

Nov 08

The DataContext component: creating entities

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: creating entities

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 […]

Read the rest of this entry »

Nov 07

The DataContext component: deferred properties

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: deferred properties

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 […]

Read the rest of this entry »

Nov 06

Crash dumps, ASP.NET and VS 2010

Posted in ASP.NET       Comments Off on Crash dumps, ASP.NET and VS 2010

Pretty cool stuff!

Read the rest of this entry »

Nov 05

The DataContext component: linking objects

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: linking objects

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…We can say that a […]

Read the rest of this entry »

Nov 05

Regular expressions and JavaScript – part II

Posted in Javascript       Comments Off on Regular expressions and JavaScript – part II

In the previous post, we’ve seen that we can build regular expression objections through a constructor ( RegExp) or by using a literal (/…/). Today I thought I’d be writing some code for illustrating the use of regular expressions. However, I think I’ll concentrate on MS AJAX and I’ll point you to this site if […]

Read the rest of this entry »

Nov 04

Regular expressions and JavaScript

Posted in Javascript       Comments Off on Regular expressions and JavaScript

After writing my last post on getting style properties from JavaScript, I’ve noticed that I still haven’t written anything about JavaScript and regular expressions…and that’s why I’ll be writing a couple of posts on this topic. Before going on, a disclaimer: I’m not really an expert on regular expressions (do note that people have written […]

Read the rest of this entry »

Nov 04

Getting the CSS display value: there’s more to it than you might think at first

Posted in Javascript       Comments Off on Getting the CSS display value: there’s more to it than you might think at first

Well, I’m spoiled… that’s what happens when you use frameworks like JQuery…Everything is good until that one day…someone says something stupid: “I need you to write some JS code but I don’t want external references on JQuery!”. Yep, I thought exactly the same thing: WTF??? “Now, that we’re clear on external frameworks, can you please […]

Read the rest of this entry »

Nov 04

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 (at least) […]

Read the rest of this entry »

Nov 03

The DataContext component: getting started with identities

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: getting started with identities

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 […]

Read the rest of this entry »

Nov 02

The DataContext component: Committing changes – take II

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: Committing changes – take II

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 […]

Read the rest of this entry »

Nov 02

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 […]

Read the rest of this entry »

Nov 02

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 […]

Read the rest of this entry »

Nov 02

The DataContext class: cancelling changes

Posted in Javascript, MS AJAX       Comments Off on The DataContext class: cancelling changes

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 […]

Read the rest of this entry »

Oct 30

Getting started with the DataContext object

Posted in Javascript, MS AJAX       Comments Off on Getting started with the DataContext object

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 […]

Read the rest of this entry »

Oct 29

DataViews, DataViews and more DataViews: DataViews everywhere!

Posted in Javascript, MS AJAX       Comments Off on DataViews, DataViews and more DataViews: DataViews everywhere!

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 […]

Read the rest of this entry »

Oct 29

Today I was a little bit surprised when I was asked if we really needed the global:: qualifier. If you’ve been doing C# for some time, the answer is (absolutely) yes. However, things might not be so clear for a beginner (btw, the question was asked in the context of auto-generated by VS which used […]

Read the rest of this entry »

Oct 29

DataView and remote web service invocation: adapting the data returned from the server

Posted in Javascript, MS AJAX       Comments Off on DataView and remote web service invocation: adapting the data returned from the server

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 […]

Read the rest of this entry »

Oct 29

PowerShell 2.0 RTMed

Posted in PowerShell       Comments Off on PowerShell 2.0 RTMed

It seems like it introduces a ton of new stuff…

Read the rest of this entry »

Oct 28

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 […]

Read the rest of this entry »

Oct 28

Feeding the DataView control with data returned from a Web Service – take II

Posted in Javascript, MS AJAX       Comments Off on Feeding the DataView control with data returned from a Web Service – take II

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 […]

Read the rest of this entry »