My Sela Dev-Days Experience

Tuesday, June 28, 2011

My Sela Dev-Days Experience Today I finished my Sela Dev. Days experience. Sela Dev. Days is a conference which include 5 days, 15 top experts, 25 session, and a whole lot of attendees (around 600 people registered for this week). If you are not familiar with Sela Dev. Days you can go to the conference’s site. In the conference I had three tutorial days in three different subjects: ASP.NET MVC 3, EF Code First integration, and Razor: Oh My! In this one day tutorial...

Loading WCF Data Services Ajax Script Library

Monday, July 5, 2010

Loading WCF Data Services Ajax Script Library Since I’ve given sessions about WCF Data Services in  the past (when they were called ADO.NET Data Services) I wanted to reuse some of the Ajax examples I showed for my coming OData  session. One of the things that have been changed lately were the scripts to use when you want to make Ajax calls to your Data Service. So I downloaded the new scripts and saw that the names of the objects to use have been changed a little but their functionality remained the same. Moreover we have a new feature...

Populating a ModalPopupExtender Dynamically

Friday, August 14, 2009

Populating a ModalPopupExtender Dynamically In the following week I was asked to dynamically populate a popup that is created by a ModalPopupExtender. The answer is simple. There are two ways to that and in this post I’ll show them both. Building the Script Service The first thing I did was to create a ScriptService. The service will create dynamically the controls I want to populate the popup of the ModalPopupExtender with. The following ScriptService will write a div and a bold text to its GetData method callers: /// <summary>/// Summary description for ExampleService/// </summary> public class...

Creating AutoCompleteExtender Trigger Button

Wednesday, June 10, 2009

Creating AutoCompleteExtender Trigger Button Yesterday I’ve been consulting at a client. During the day, I got a question regarding ASP.NET AJAX Control Toolkit’s AutoCompleteExtender. The question was how to create a trigger button to the AutoCompleteExtender in order to go to the server and fetch the results. This post will describe how to do that. Creating an Autocomplete Web Service The first thing to do when you want to use the AutoCompleteExtender is to create the web service that you’ll connect to. In my example, I’m going to use the following suggestions web service: public class SuggestionsService : WebService{...

Making Cross-Domain Ajax Requests for a Data Service Revisited

Tuesday, May 19, 2009

Making Cross-Domain Ajax Requests for a Data Service Revisited A month ago I released the post Making Cross-Domain Ajax Requests for a Data Service. The post is about a better solution to the problem. Problem Revisited In my previous post, I mentioned the problem of making a cross-domain Ajax requests to a service that isn’t located in the application domain. I also offered a solution of creating a cross-domain...

Making Cross-Domain Ajax Requests for a Data Service

Monday, April 20, 2009

Making Cross-Domain Ajax Requests for a Data Service One problem that exists when using ADO.NET data services is cross-domain requests. For security reasons, XMLHTTP requests don’t allow cross-domain HTTP requests. So what can we do if we want to make an Ajax call for a data service that isn’t located in our domain? this post will try to give a solution to this problem. Making a Cross-Domain Ajax Request for a Data Service As stated early in the post’s start, for security reasons, XMLHTTP requests don’t allow cross-domain HTTP requests. But sometimes we do want to consume data services that aren’t...

Building ADO.NET Data Services Ajax Queries Using a QueryBuilder

Friday, January 2, 2009

Building ADO.NET Data Services Ajax Queries Using a QueryBuilder In today’s post I’m going to explain how to use the QueryBuilder object of the ASP.NET Ajax client library for building queries to an ADO.NET data service. The QueryBuilder Object In the ASP.NET Ajax client library there is a new namespace – Sys.Data. This namespace hosts the main client side objects to interact with data services. ...

Action Sequences in ADO.NET Data Services

Friday, October 31, 2008

Action Sequences in ADO.NET Data Services In this post I’m going to demonstrate how you can use the action sequence feature of the ADO.NET Data Services AJAX Client Library. What is Action Sequence? As written in my previous post, when we perform a CRUD operation using the AJAX Client Library it is immediately transmitted and performed. In the server side when using the DataServiceContext the operations are cached ...

ADO.NET Data Services AJAX Client Library in VS2008 SP1 Release

Saturday, October 25, 2008

ADO.NET Data Services AJAX Client Library in VS2008 SP1 Release In a previous post I showed how to build an Ajax client for a data service. In that post I added to the solution a new ASP.NET 3.5 Extensions Web Application project which came with the the ASP.NET 3.5 Extensions preview. In that preview the ADO.NET data services Ajax client library was embedded in the...

How to Perform CRUD Operations in ADO.NET Data Services Using Ajax Client

Friday, October 24, 2008

How to Perform CRUD Operations in ADO.NET Data Services Using Ajax Client In the last post in the ADO.NET data services series I wrote about how you can consume data services using Ajax client. In this post I’m going to explain how to perform CRUD operations on a data service using an Ajax client. DataServiceContext and Sys.Data.DataService Before starting to understand how to perform CRUD operations with Ajax ...