Monday, March 26, 2012

Ajax Toolkit - context key

What is this context key in slideshow extender and how to use it

Hi FutureGuru,

Please visit the example site, or set it up yourself ...http://www.asp.net/AJAX/Control-Toolkit/Live/SlideShow/SlideShow.aspx

They explain it allWink

ContextKey - User/page specific context provided to an optional overload of the web method described by ServiceMethod/ServicePath. If the context key is used, it should have the same signature with an additional parameter named contextKey of type string:
 [System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public AjaxControlToolkit.Slide[] GetSlides(string contextKey) { ... }
Note that you can replace "GetSlides" with a name of your choice, but the return type and parameter name and type must exactly match, including case.

No comments:

Post a Comment