WorldofASP.NET : ASP.NET Directory, Tutorial, Hosting, and Source Code
You are 1 of 223 users


Migrating to ASP.NET AJAX Beta 1

Blogger : ASP.NET Blogs
All posts : All posts by ASP.NET Blogs
Category : AJAX
Blogged date : 2006 Nov 02

If you're trying to migrate from previous Microsoft Atlas releases to the new ASP.NET AJAX Core Beta 1 you'll quickly find out that several things have changed.  I was playing around with the AutoCompleteExtender this evening and noticed that it isn't in the "core" installation but has been moved into the CTP installation.  It's been changed a bit too.  In previous releases you would define it using syntax similar to the following:

<asp:TextBox id="txtCountry" runat="server" />
<atlas
:AutoCompleteExtender ID="aceTxtCountry" runat="server">
   
<atlas:AutoCompleteProperties Enabled="True"
          ServiceMethod
="GetCountries"
          ServicePath
="~/CustomerService.asmx"
          TargetControlID
="txtCountry" MinimumPrefixLength="1" />
</
atlas:AutoCompleteExtender>

The AutoCompleteProperties property of the AutoCompleteExtender control has been removed and everything is defined directly on the AutoCompleteExtender tag itself using attributes now:

<asp:TextBox id="txtCountry" runat="server"/>
<
asp:AutoCompleteExtender ID="aceTxtCountry" runat="server" 
    ServiceMethod
="GetCountries"
    ServicePath
="~/CustomerService.asmx"
    TargetControlID
="txtCountry"
    MinimumPrefixLength
="1"  />

There are some other subtle changes that can bite you too on this control.

If you're calling Web Services from ASP.NET AJAX enabled pages you'll also have to make a change to the service.  Web Service classes now have to be defined using the ScriptService attribute as shown next:

[WebService(Namespace "namespaceUri")]
[WebServiceBinding(ConformsTo 
WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class WebService : System.Web.Services.WebService {
   
//Web Service Code
}

I'm hoping this change won't make it into the final release (although admit I'm still a bit vague on the rationale so I could change my mind) because in enterprise scenarios you may not have control over a Web Service and be able to add the attribute.  That means you'd have to make a wrapper Web Service that defines the ScriptService attribute and calls the "real" Web Service to get the data or write another custom solution.  We'll see what happens though...

Share this post: Email it! | bookmark it! | digg it! | reddit!

Read comments or post a reply to : Migrating to ASP.NET AJAX Beta 1
Page 1653 of 1924
Next | Last

.NET News Categories








Legend : - Within 3 Days - Within 6 Days - Within 9 Days

Home | Add Resources | Sponsored Listings | Advertise with Us | SiteMap 1 | SiteMap 2 | Link To Us | Contact Us
© 2002-2008 Worldofasp.net ASP.NET Directory, Hosting and Tutorials | All rights reserved
Our Partners : ASP.NET Web Hosting | Windows Web Hosting | ASP.NET Hosting | Phone Card | PHP Directory | Bangkok Hotels |Calling Card