Tales from the Evil Empire

Bertrand Le Roy's blog

News


Bertrand Le Roy


Add to Technorati Favorites Tales from the Evil Empire - Blogged

Blogs I read

My other stuff

Preview documentation for ASP.NET Ajax 4.0 available

We published some documentation for ASP.NET Ajax 4.0 Preview 3:
http://quickstarts.asp.net/previews/ajax/templates/default.aspx

Comments

Cem said:

Hi Bertrand,

i have a question about dataview:serviceuri.i think that to bind data to dataview,we must give webservice or svc.file in your examples.As u know,In Ajax Controls there is a feature ,which is called as PageMethods, and by using this method we can get  static web methods results.Is it possible to use in your example?Or will Asp.Net ajax 4.0 provide Page Methods soon?

Regards

# November 13, 2008 4:02 AM

Bertrand Le Roy said:

@Cem: page methods are just web services that happen to be defined from a page's code. Ajax 4.0 works well with any kind of JSON Web service and so should page methods. The difference is that you wouldn't be using an AdoNetDataSource. You could call the method using its client proxy (or call it using Sys.Net.WebServiceProxy.invoke) and set the data property of the dataview from the success callback. If you prefer to do things declaratively, you can do the same thing by using a DataSource using the query as the method name.

# November 13, 2008 1:16 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)