Solved

Ajax SlideShow extender

Posted on 2009-03-31
4
1,191 Views
Last Modified: 2012-06-27
when am using slideshow extender i am getting this error"System.InvalidOperationException-- Authentication failed."
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="slideshow.aspx.cs" Inherits="EMP_slideshow" %>
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script runat="Server" type="text/C#">
            [System.Web.Services.WebMethod]
            [System.Web.Script.Services.ScriptMethod]
            public static AjaxControlToolkit.Slide[] GetSlides()
            {
                AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[5];
 
                slides[0] = new AjaxControlToolkit.Slide("~/slide images/Ascent.jpg", "Ascent", "Cool moon night...");
                slides[1] = new AjaxControlToolkit.Slide("~/slide images/Red Moon Desert.jpg", "Desert", "Red moon desert...");
                slides[2] = new AjaxControlToolkit.Slide("~/slide images/Tulips.jpg", "Tulips", "Beautiful tulips...");
                slides[3] = new AjaxControlToolkit.Slide("~/slide images/Autumn.jpg", "Autumn", "Way to home...");
                slides[4] = new AjaxControlToolkit.Slide("~/slide images/Stonehenge.jpg", "Stonehenge", "Age of mythology...");
                return (slides);
            }
        </script>
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    
    </div>
        <asp:Image ID="imgSlides" runat="server" Height="284px" ImageUrl="~/slide images/Stonehenge.jpg"
            Width="329px" />
        <br />
        <asp:Label ID="lblTitle" runat="server" Text="Label"></asp:Label><br />
            <asp:Button ID="Btn_Previous" runat="server" Text="&lt;&lt;" CssClass="btn" />
                            <asp:Button ID="Btn_Play" runat="server" Text="Play" CssClass="btn" OnClick="Btn_Play_Click" />
                            <asp:Button ID="Btn_Next" runat="server" Text="&gt;&gt;" CssClass="btn" />
        <cc1:SlideShowExtender ID="SlideShowExtender1" runat="server"  AutoPlay="true" ImageTitleLabelID="lblTitle"
                     Loop="true" NextButtonID="Btn_Next"
                    PlayButtonID="Btn_Play" PlayButtonText="Play" PreviousButtonID="Btn_Previous"
                    SlideShowServiceMethod="GetSlides" StopButtonText="Stop" TargetControlID="imgSlides" >
        </cc1:SlideShowExtender>
    </form>
</body>
</html>

Open in new window

0
Comment
Question by:mannevenu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:mannevenu
ID: 24058594
thank u sir in hurry i given wrong zone
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 24058723
Can you step through the server side code to see which line is generating the error.
0
 

Author Closing Comment

by:mannevenu
ID: 31565178
thank u sir i got solution
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question