Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6543899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:24:05+00:00 2026-05-25T11:24:05+00:00

I am using the ASP.NET ajax slideshow extender tool for displaying images slideshow. I

  • 0

I am using the ASP.NET ajax slideshow extender tool for displaying images slideshow. I followed the video tutorial and have taken reference from here.

I have the GetSlides function defined as:

public AjaxControlToolkit.Slide[] GetSlides(string parms) {
-----
-----
}

In the aspx page i need to pass the parameter value which is in the query string for that page. The code i used to pass the parameter to the function is:

<ajax:SlideShowExtender ID="SlideShowExtender1" runat="server"
         AutoPlay="true" ImageDescriptionLabelID="lblImageDescription"
               Loop="true" NextButtonID="Btn_Next" PlayButtonID="Btn_Play" 
                PlayButtonText="Play" PreviousButtonID="Btn_Previous" 
                 SlideShowServiceMethod="GetSlides(<%= Request.QueryString["tempID"] %>)" StopButtonText="Stop"
                  TargetControlID="Image1">
</ajax:SlideShowExtender>

However this provides the basic error of server constructs: Server tags cannot contain <% ... %> constructs.

I have checked the expression builder concept also using the text like: "<%$ AppSettings: FooText %>", through web.config. But the parameter is itself dynamic and cannot be stored in web config file. So how should I pass the querystring parameter for the GetSlides function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:24:06+00:00Added an answer on May 25, 2026 at 11:24 am

    You can set parameter from codebehind. Use ContextKey property:

    SlideShowExtender1.ContextKey = Request.QueryString["tempID"];
    

    Also, your method must have signature:

     public AjaxControlToolkit.Slide[] GetSlides(string contextKey)
    

    It’s all in docs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using the ASP.NET Ajax Control Toolkit Slideshow extender and while it works,
I have a asp.net ajax slideshow extender that I have hijacked and turned into
I'm using the ASP net Ajax toolkit and have a GridView within the UpdatePanel
Using the client-side ASP.NET AJAX library, I have created an instance of a client
I'm using ASP.NET Ajax with JQuery. I have a click event that adds/removes css
Using this tutorial: http://dotnetslackers.com/articles/ajax/Using-jQuery-with-ASP-NET.aspx The web service is invoked such as Service1.asmx/HelloToYou The default
I am using ASP.Net Ajax's Page Methods and I have an issue that an
I have an ASP.NET application that is using ASP.NET AJAX. I am using the
I am using ASP.NET ajax to dynamically add/remove controls from a page without using
I'm using ASP.NET AJAX. I create a .aspx page that is based on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.