Totally lost using Slide.Show with master pages

Jul 9, 2008 at 3:11 PM
I've searched the threads and haven't found an answer for this already, so I'll start the dialog.

I've been able to get my slideshow working in a simple html page, but as soon as I start trying to use master pages by inserting the following code inside my content placeholder I lose the slideshow viewer completely. Here's the code:
		<script src="Scripts/Release/Silverlight.js" type="text/javascript"></script>
		<script src="Scripts/Release/SlideShow.js" type="text/javascript"></script>
		<script type="text/javascript">
			new SlideShow.Control(new SlideShow.XmlConfigProvider());
		</script>

I'd really like to use master pages with this, so does anyone have any idea what is wrong?

TIA.
Jul 14, 2008 at 4:22 AM
The first 2 script blocks should be placed the head section of your page/content place holder. The last block should be placed where you want to display your control.
Jul 14, 2008 at 5:46 PM


zmb wrote:
The first 2 script blocks should be placed the head section of your page/content place holder. The last block should be placed where you want to display your control.


I'm guessing what you're calling my "page/content placeholder" is my master page, since the pages derived from master pages don't have head sections.

Yeah.

I tried that. It wasn't the first thing I tried, but when I did try it, it didn't show up on the page in question.

What else could I have screwed up?
Jul 23, 2008 at 4:47 PM

The head section of your master page should look like this:

 

<

 

 

head runat="server">

 

 

 

 

 

 

 

<title></title>

 

 

 

 

 

 

 

<link href="Print.css" media="screen" rel="Stylesheet" type="text/css" />

 

 

 

 

 

 

 

<link href="Screen.css" media="screen" rel="Stylesheet" type="text/css" />

 

 

 

 

 

 

 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

 

 

 

 

 

 

 

<asp:ContentPlaceHolder id="cphhead" runat="server">

 

<!-- Scripts Will Go Here When In the Content Page -->

 

 

 

 

 

</asp:ContentPlaceHolder>

 

</

 

 

head>

 

 


When you create the content page, this will be in it:

 

<

 

 

asp:Content ID="Content1" ContentPlaceHolderID="cphhead" Runat="Server">

 

 

 

 

 

 

 

<script src="Silverlight.js" type="text/javascript"></script>

 

 

 

 

 

 

 

<script src="SlideShow.js" type="text/javascript"></script>

 

</

 

 

asp:Content>

 


Now place the script block where you want the control to render.