Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1056
  • Last Modified:

SlideShowServiceMethod parameter

I am attempting to use the AjaxControlToolkit Side Show.

How can I pass a parameter to the "SlideShowServiceMethod"?
I want to dynamically change the path of the images it rotates through. I tried "GetSlides?URLPath=/Path" and then capturing the QueryString parameter without success.
0
MarcGraff
Asked:
MarcGraff
1 Solution
 
GiftsonDJohnCommented:
Hi,

Use ContextKey. It will be passed as the overload method. You have to create a overloaded method as defined below.

    [System.Web.Services.WebMethod]
    [System.Web.Script.Services.ScriptMethod]
    public AjaxControlToolkit.Slide[] GetSlides(string contextKey)
    {
    }
0
 
MarcGraffAuthor Commented:
Thanks!
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now