Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Go Back  Xtreme Visual Basic Talk > > > Slideshow Extender Not firing GetSlides


Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2011, 11:28 AM
nate's Avatar
nate nate is offline
Junior Contributor
 
Join Date: Mar 2001
Posts: 358
Default Slideshow Extender Not firing GetSlides


I am so frustrated as I seem to have this issue every time I create a new site. First Ajax 3.5 has been more than trying to get installed and working properly with VS2008.

I have written 2 other sites with the same exact code and they work fine but I can not figure out why this one will not. I have double checked everything even replacing the Ajax.dll in my bin with one from a site that works. It started out with the ScriptManager and ToolkitScriptManager. At first I figured out I needed to use the ToolkitScriptManager to get things to work. Now when I try to insert an Ajax control it gives me a weird FORMAC error. I am about to through this computer through my window as I am so tired of dealing with so many versions that only work with other versions. OMG, please help.

Web Service Code:
Code:
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
Imports System.Data.SqlClient

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class SlideShow
    Inherits System.Web.Services.WebService
    Dim SlidesDS As DataSet
    <WebMethod()> _
        Public Function GetSlides(ByVal ContextKey As String) As AjaxControlToolkit.Slide()
        Dim SQLServer As String = Application("DBDotNetConnectionString")
        ' create a new SqlConnection object with the appropriate connection string
        Dim sqlConn As New SqlConnection(SQLServer) 'OleDbConnection i
        ' open the connection
        sqlConn.Open()

        'Dim MyConnection As SqlConnection
        Dim MyDataAdapter As SqlDataAdapter

        SlidesDS = New DataSet

        'Create a DataAdapter, and then provide the name of the stored procedure.
        MyDataAdapter = New SqlDataAdapter("GetSlides", sqlConn)

        'Set the command type as StoredProcedure.
        MyDataAdapter.SelectCommand.CommandType = CommandType.StoredProcedure


        'Create and add a parameter to Parameters collection for the stored procedure.
        MyDataAdapter.SelectCommand.Parameters.Add(New SqlParameter("@ShowID", _
       SqlDbType.NVarChar, 100))

        'Assign the search value to the parameter.
        MyDataAdapter.SelectCommand.Parameters("@ShowID").Value = ContextKey


        MyDataAdapter.Fill(SlidesDS, "GetSlides") 'Fill the DataSet with the rows returned.

        MyDataAdapter.Dispose() 'Dispose of the DataAdapter.


        sqlConn.Close()



        Dim x As Integer = 0
        Dim slides(SlidesDS.Tables(0).Rows.Count - 1) As AjaxControlToolkit.Slide
        Do While x < SlidesDS.Tables(0).Rows.Count
            slides(x) = New AjaxControlToolkit.Slide("images/whats_happening_now/" & SlidesDS.Tables(0).Rows(x).Item(2).ToString, SlidesDS.Tables(0).Rows(x).Item(3).ToString, SlidesDS.Tables(0).Rows(x).Item(4).ToString)
            x = x + 1
        Loop

        Return slides
    End Function
Master Page Code:
Code:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="ajaxToolkit" %>

...
 <form id="form1" runat="server">
    <asp:ToolKitScriptManager ID="ToolKitScriptManager1" runat="server">
    </asp:ToolKitScriptManager>
...
ASPX Page Code:
Code:
                  <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
       ....       
                                <asp:Image ID="imgWhatsHappening" runat="server" />    
                                <asp:Label ID="lblSSDesc" runat="server" />  
                                   <asp:SlideShowExtender ID="SlideShowExtender1" runat="server" 
                                    AutoPlay="True"
                                    TargetControlID="imgWhatsHappening"
                                    SlideShowServiceMethod="GetSlides()"
                                    SlideShowServicePath="SlideShow.asmx"
                                    ImageDescriptionLabelID="lblSSDesc"
                                    Loop="true"
                                    PlayInterval="3000" UseContextKey="True">
                                   </asp:SlideShowExtender>
....

I have tried everything. Also, if I debug my webservice, it runs great and returns the data I need, the slideshow extender is simply not calling the method GetSlides().

Thanks in advance for any help.
__________________
Ignorance begins with I.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
 
Slideshow Extender Not firing GetSlides
Slideshow Extender Not firing GetSlides
 
-->