Login    Forum    Search    FAQ   Blog

Board index » Server Side Development » Dotnet




 Page 1 of 1 [ 3 posts ] 



Author Message
 Post subject: Slideshowin was not responding
 Post Posted: Tue Oct 20, 2009 12:39 pm 
Offline

Joined: Sat Feb 21, 2009 12:34 pm
Posts: 59
Hello awl ,

I m havin a page in whih I was been tryin 2 inlcude a Slideshow. I underwent the method
just as shown in da AJAX tutorial on dis site. In ma code behind 4 da .asmx page
intellisense was giving me the following issue in the Return MySlides:

Val of type '1-dimensional array of AjaxControlToolkit.Slide' could not been converted 2
Ajax Control Tool kit.Slide

I m havin a latest Sept 30th release of da toolkit just installed on the 3.5 Framework.
Here was da .asmx.vb code dat I was using:

Code:
   1. Imports System.ComponentModel 
   2.   
   3. ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
   4. <System.Web.Script.Services.ScriptService()> _ 
   5. <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _ 
   6. <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ 
   7. <ToolboxItem(True)> _ 
   8. Public Class SlidesService 
   9.     Inherits System.Web.Services.WebService 
  10.   
  11.     <WebMethod()> _ 
  12.     Public Function GetSlides() As AjaxControlToolkit.Slide 
  13.         Dim MySlides(3) As AjaxControlToolkit.Slide 
  14.         MySlides(0) = New AjaxControlToolkit.Slide("MainImages\AW Logo Small.gif", "Logo", "Logo") 
  15.         MySlides(1) = New AjaxControlToolkit.Slide("MainImages\random with figurals 200x149.JPG", "Figural", "Figural") 
  16.         MySlides(2) = New AjaxControlToolkit.Slide("MainImages\puzzle_signup_Small.gif", "Signup", "Signup") 
  17.         MySlides(3) = New AjaxControlToolkit.Slide("MainImages\random cut flower 100x68.jpg", "Flower", "Flower") 
  18.         Return MySlides 
  19.     End Function 


Any ideas? I could not find ne thin on da forum dat seems just relavent.

Thanks,


Top 
 Post subject: Re: Slideshowin was not responding
 Post Posted: Tue Oct 20, 2009 12:39 pm 
Offline

Joined: Sat Feb 21, 2009 1:08 pm
Posts: 549
Use:

Code:
Public Function GetSlides() As AjaxControlToolkit.Slide()


Instead of:

Code:
Public Function GetSlides() As AjaxControlToolkit.Slide 


Code:
   1. Imports System.ComponentModel 
   2.   
   3. ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
   4. <System.Web.Script.Services.ScriptService()> _ 
   5. <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _ 
   6. <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ 
   7. <ToolboxItem(True)> _ 
   8. Public Class SlidesService 
   9.     Inherits System.Web.Services.WebService 
  10.   
  11.     <WebMethod()> _ 
  12.     Public Function GetSlides() As AjaxControlToolkit.Slide() 
  13.         Dim MySlides(3) As AjaxControlToolkit.Slide 
  14.         MySlides(0) = New AjaxControlToolkit.Slide("MainImages\AW Logo Small.gif", "Logo", "Logo") 
  15.         MySlides(1) = New AjaxControlToolkit.Slide("MainImages\random with figurals 200x149.JPG", "Figural", "Figural") 
  16.         MySlides(2) = New AjaxControlToolkit.Slide("MainImages\puzzle_signup_Small.gif", "Signup", "Signup") 
  17.         MySlides(3) = New AjaxControlToolkit.Slide("MainImages\random cut flower 100x68.jpg", "Flower", "Flower") 
  18.         Return MySlides 
  19.     End Function 


Top 
 Post subject: Re: Slideshowin was not responding
 Post Posted: Tue Oct 20, 2009 12:40 pm 
Offline

Joined: Sat Feb 21, 2009 12:34 pm
Posts: 59
Thanks 4 the tip...includin da () did eliminate da build error, but I was still unable to get anything 4m da
slideshow. (Only the default Image1 src is being shown.) Here come s ma code dat I was using on the aspx
page wich was usin a master page n the case it matters.

Only change dat I made 2 asmx page must to add ().

Any ideas would be greatly appreciated.

Code:
   1. Imports System.ComponentModel 
   2.   
   3. ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
   4. <System.Web.Script.Services.ScriptService()> _ 
   5. <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _ 
   6. <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ 
   7. <ToolboxItem(True)> _ 
   8. Public Class SlidesService 
   9.     Inherits System.Web.Services.WebService 
  10.   
  11.     <WebMethod()> _ 
  12.     Public Function GetSlides() As AjaxControlToolkit.Slide() 
  13.         Dim MySlides(3) As AjaxControlToolkit.Slide 
  14.         MySlides(0) = New AjaxControlToolkit.Slide("MainImages\AW Logo Small.gif", "Logo", "Logo") 
  15.         MySlides(1) = New AjaxControlToolkit.Slide("MainImages\random with figurals 200x149.JPG", "Figural", "Figural") 
  16.         MySlides(2) = New AjaxControlToolkit.Slide("MainImages\puzzle_signup_Small.gif", "Signup", "Signup") 
  17.         MySlides(3) = New AjaxControlToolkit.Slide("MainImages\random cut flower 100x68.jpg", "Flower", "Flower") 
  18.         Return MySlides 
  19.     End Function 


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 3 posts ] 




Board index » Server Side Development » Dotnet


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron