Author: WMA4432 | Posted on: 10/10/2009 6:54:59 AM | Views : 261

I'm using Asp.Net Ajax 4.0 preview 5.
 
Which way is correct?   
Way #1
var myDC = new Sys.Data.AdoNetDataContext();        myDC.set_serviceUri("WebDataService.svc");
This way #1 was copied from Jim Wangs Blog
http://weblogs.asp.net/jimwang/archive/2009/09/11/asp-net-ajax-preview-5-and-updatepanel.aspx
 
Way #2
var myDC = new Sys.Data.AdoNetServiceProxy('WebDataService.svc');
 
This way was found in the Preview5Samples.
 
Both are giving me errors.  The service does work.  Can call from browser. And I get output.
 
 
Any ideas or any material I can read to better understand this object.
(  AdoNetDataContext  &  AdoNetServiceProxy )


Thank You,
William Apken
 
...

Go to the complete details ...