LA.NET [EN]

October, 2009Archive

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 »

Oct 28

Until now, we’ve been using static data to feed all the DataView controls we’ve been using in the MS AJAX series. Today we’ll see how we can configure the control so that it automatically gets data returned from a web service call. To get things started, we’ll start by introducing the server side code for […]

Read the rest of this entry »

Oct 27

In these last posts, we’ve already met several of the events generated by the DataView control. I thought it would be a good idea to write a small post which documents many of the events we’ve seen in the past: command: fired when a user clicks over an element which has been “marked” with the […]

Read the rest of this entry »

Oct 26

I’m sorry, but I couldn’t resist sharing this with you guys (especially if you’re a soccer fan ; ) ,,). btw, he’s my nephew…and yes, I’m proud 🙂

Read the rest of this entry »

Oct 26

In one of the previous posts of the series, we’ve seen how easy it is to build a master-detail scenario with the help of the new DataView control. Today, we’ll keep looking at it and we’ll see how we can build an editable grid. The next two images explain the objective of our post. The […]

Read the rest of this entry »

Oct 26

One of the cool features MS AJAX preview 6 introduces is better JQuery integration. From now on, MS AJAX components (which have been defined through a script info object registered through a defineScript(s) method call) are exposed as jQuery plugins. This means that you can write something like this: <head runat="server"> <style type="text/css"> .sys-template{ display:none; […]

Read the rest of this entry »

Oct 25

Super Loeb

Posted in Uncategorized       Comments Off on Super Loeb

Does it again! Fantastic come back from the best rally driver of all times…just watch this if you have any doubts…

Read the rest of this entry »

Oct 23

Master-detail made easy with the DataView control

Posted in Javascript, MS AJAX       Comments Off on Master-detail made easy with the DataView control

We can reuse our knowledge of the previous post to create a master-detail scenario. The idea is simple: we configure our master DataView to show all the elements and then we add a second DataView control that will only show the details of the current selected item on the master DataView. I will spare you […]

Read the rest of this entry »

Oct 23

Updates on preview posts

Posted in Javascript, MS AJAX       Comments Off on Updates on preview posts

2011-01-12 14:45:16

Read the rest of this entry »

Oct 23

The DataView control and the select command

Posted in Javascript, MS AJAX       Comments Off on The DataView control and the select command

In the previous posts, we’ve met commands and saw how to use them from within a DataView control.What I didn’t mention at the time was that the DataView control understand commands named select. In other words, the DataView understands that type of commands and reacts to them by setting the current selected item. Currently, the […]

Read the rest of this entry »

Oct 22

The Sys.create object helper

Posted in Javascript, MS AJAX       Comments Off on The Sys.create object helper

This is becoming quite a long series, but what can I do? There’s simply lots of things to talk about in the new MS AJAX preview 6. As you probably recall (if you’ve been following along since I’ve started writing compulsorily about MS AJAX), we started with code written against preview 5 and then moved […]

Read the rest of this entry »

Oct 22

Now that you already know what a command is and how to use them in a declarative scenario, it’s time to keep going and see how we can use them from an imperative only approach. You already know how to “define” templates from JavaScript, so I guess we can concentrate on seeing which JavaScript code […]

Read the rest of this entry »

Oct 22

Taking advantage of commands

Posted in Javascript, MS AJAX       Comments Off on Taking advantage of commands

The DataView control supports the concept of a command. In practice, you can think of a command as a “fancy event” which is generated by MS AJAX controls in response to a DOM click event. Commands have an advantage over traditional DOM event handling: for instance, you can easily pass additional information that will be […]

Read the rest of this entry »

Oct 21

I’ve just received an email which reference this interview. It really makes you think…

Read the rest of this entry »

Oct 21

The Sys.bind plug-in

Posted in Javascript, MS AJAX       Comments Off on The Sys.bind plug-in

We’ve already introduced the concept of MS AJAX plug-in in the previous post. In this post, we’ll explore the Sys.bind plug-in that, as you’ve probably recall, is mapped into the Sys.Binding.bind method. As you’ve probably deduced from its name, you can use this plug-in to establish a binding relationship between two objects. Currently, this plug-in […]

Read the rest of this entry »

Oct 21

The latest release of MS AJAX introduces the concept of plug-ins (which, btw, is different from what you have in other JS frameworks – ex. JQuery). Plug-ins can be seen as simple methods which get added to the “global” Sys object (ie, defining a plug-in results in creating a shortcut in the Sys object). Besides […]

Read the rest of this entry »

Oct 21

A few days ago, I’ve mentioned that bing isn’t working property. Interestingly, I’ve just noticed that if you run a search for ‘search’ in Google Portugal, you’ll get a reference for bing. Isn’t that ironic?

Read the rest of this entry »

Oct 20

Script font format option in Visual Studio 2010

Posted in VS 2010       Comments Off on Script font format option in Visual Studio 2010

It seems like I’ll be answering one of my own questions regarding VS: how to change the color of strings in JavaScript?

Read the rest of this entry »

Oct 19

VS 2010 beta 2 is out

Posted in VS 2010       Comments Off on VS 2010 beta 2 is out

And I’m already installing it…get it now!

Read the rest of this entry »

Oct 19

In this post, we’ll start applying all the things we’ve met in previous posts and, at the same time, we’ll be making reader William Apken really happy :,,) William commented a previous post right before preview 6 was released. He was interested in seeing how he could switch templates dynamically. At the time, there wasn’t […]

Read the rest of this entry »

Oct 19

More MS AJAX system attributes…

Posted in Javascript, MS AJAX       Comments Off on More MS AJAX system attributes…

We’ve already met several system attributes in previous posts. As you probably recall, I’ve been using that name for all attributes which are associated with the sys alias (don’t forget that the sys alias use is hardcoded!). In this post, we’ll take a look at some of the special system attributes you can use in […]

Read the rest of this entry »

Oct 19

Using nested tempates

Posted in Javascript, MS AJAX       Comments Off on Using nested tempates

The last post might have left you thinking that templates still need some working. After all, using sys:beforecode and sys:aftercode doesn’t really look well, right? Yes, I agree: it’s a little bit ugly. In fact, lets recover the (offending?) code we’ve used here in that sample: <p sys:codebefore=”for(var pos in contacts){” sys:codeafter=”}”> {{contacts[pos]}} </p> Now, […]

Read the rest of this entry »

Oct 19

We’ve already seen that templates let us use pseudo-columns for accessing specific context information. In this post, we’ll be talking about a related subject: including code in a template through the use of sys: attributes. Currently, you’ve got the following options: sys:codebefore: executes the specified JavaScript expression before rendering each element; sys:codeafter: executes the specified […]

Read the rest of this entry »