Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Closed Thread
SlideShowExtender in ASP.NET AJAX not working under a contentplaceholder...masterpage
Old 06-15-2009, 10:02 AM SlideShowExtender in ASP.NET AJAX not working under a contentplaceholder...masterpage
Junior Talker

Posts: 4
Trades: 0
Hello

I am trying to get the SlideShowExtender to work in my ASP.NET AJAX application...however, I can get the slideshow to work with a normal aspx page...BUT not when in the contentplaceholder...which comes from the Masterpage.master

Here is my current code in a .aspx page (which is the content page derived from master page)

Code:
 
<%@PageTitle=""Language="VB"MasterPageFile="~/mywebsite.master"AutoEventWireup="false"CodeFile="slideshow.aspx.vb"Inherits="slideshow" %>
<%@RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1" %>
<asp:ContentID="Content1"ContentPlaceHolderID="contentholder"Runat="Server">
<asp:ScriptManagerID="ScriptManager1"runat="server">
</asp:ScriptManager>
<asp:ImageID="img1"runat="server"Height="400px"Width="400px"ImageUrl="~/images/Blue Hills.jpg"/>
<cc1:SlideShowExtenderID="SlideShowExtender1"runat="server"
BehaviorID="SSBehaviorID"
TargetControlID="img1"SlideShowServiceMethod="GetSlides"AutoPlay="true"ImageDescriptionLabelID="lblDesc"
NextButtonID="btnNext"PreviousButtonID="btnPrev"PlayButtonID="btnPlay"PlayButtonText="Play"
StopButtonText="Stop"
Loop="true">
</cc1:SlideShowExtender>
<asp:LabelID="lblDesc"runat="server"Text=""></asp:Label><br/>
<asp:ButtonID="btnPrev"runat="server"Text="Previous"/>
<asp:ButtonID="btnPlay"runat="server"Text=""/>
<asp:ButtonID="btnNext"runat="server"Text="Next"/>
</asp:Content>
and the code for its codebehind file is:

Code:
PartialClass slideshow
Inherits System.Web.UI.Page
<System.Web.Services.WebMethod(), System.Web.Script.Services.ScriptMethod()> _
PublicSharedFunction GetSlides() As AjaxControlToolkit.Slide()
Dim imgSlide(3) As AjaxControlToolkit.Slide
imgSlide(0) = New AjaxControlToolkit.Slide("images/Blue hills.jpg", "Blue Hills", "Blue Hills")
imgSlide(1) = New AjaxControlToolkit.Slide("images/Sunset.jpg", "Sunset", "Sunset")
imgSlide(2) = New AjaxControlToolkit.Slide("images/Waterlilies.jpg", "Water Lilies", "Water Lilies")
imgSlide(3) = New AjaxControlToolkit.Slide("images/Winter.jpg", "Winter", "Winter")
Return imgSlide
EndFunction
EndClass
I cant get it to work at all under the contentplaceholder......but it works in a plain old .aspx file....

any help will be much appreciated.

Thanks
~Namu
namu is offline
View Public Profile
 
 
Register now for full access!
Closed Thread     « Reply to SlideShowExtender in ASP.NET AJAX not working under a contentplaceholder...masterpage
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12927 seconds with 12 queries