Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSilverlightSilverlight's slideshow
Previous
 
Next
New Post
1/6/2011 11:59 AM
 
Hi, I would like add Silverlight slideshow to my control page (ascx).


At first, I created module in DesktopModules folder, registered this module
using DotNetNuke and pasted to my DNN page. It is ok.


My module folder (pasted in DesktopModules folder) was created with this tree


- css folder
- images folder
- js folder
- slideshow folder


mypage.ascx
mypage.ascx.vb
configuration.xml
Data.xml







Js folder includes java script files, Slideshow includes Silverlight.js and SlideShow.js.




Configuration.xml includes this code
    <script key="AlbumButton" url="/js/Debug/AlbumButton.js" extendsClass="Button" />
    <script key="AlbumNavigation" url="/js/Debug/AlbumNavigation.js" extendsClass="PageNavigation" />
    <script key="AlbumViewer" url="/js/Debug/AlbumViewer.js" extendsClass ="UserControl"/>




etc.




Data.xml includes this code


<?xml version="1.0" encoding="utf-8" ?>
<data startalbumindex="0" transition="CrossFadeTransition">
  <album
title="My title"
description="My text"
image="../DesktopModules/MyModules/images/image_01s.png">
    <slide
title="Image No.1"
description=""
image="../DesktopModules/MyModules/images/image_01.png"
thumbnail="../DesktopModules/MyModules/images/image_01s.png" />


  </album>
</data>








Mypage.ascx includes this code
<%@ Control Language="VB" AutoEventWireup="false"......................................etc


      <script type="text/javascript">
            $(document).ready(function () {
                new SlideShow.Control(new SlideShow.XmlConfigProvider());
                //
            });
</script>


<asp:Panel ID="Panel1" runat="server" ScrollBars="Auto">
Hello this is my modul


</asp:Panel>   






Mypage.ascx.vb includes this code


    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        Dim include As HtmlGenericControl = New HtmlGenericControl("script")
        Dim include2 As HtmlGenericControl = New HtmlGenericControl("script")
        include.Attributes.Add("type", "text/javascript")
        include2.Attributes.Add("type", "text/javascript")
        include.Attributes.Add("src", "../DesktopModules/MyModules/slideshow/SlideShow.js")
        include2.Attributes.Add("src", "../DesktopModules/MyModules/slideshow/Silverlight.js")
        Page.Header.Controls.Add(include)
        Page.Header.Controls.Add(include2)


    End Sub






If I pasted my module to the DNN page, I can see (using WebDevelopers tools), that my code from ascx.vb is ok, links on the java script
files is valid, I can see (after click on this link) content java script file. If I uncomment from ascx page, I see popup windows.
If I run this code  with


 new SlideShow.Control(new SlideShow.XmlConfigProvider());


in ascx page, I don't  see on DNN page anything, any errors, logo Silverlight etc. This code is functional in my last projects, but it is "classic"
project with aspx pages.


Please, can anybody help me?
Thanks 









 
New Post
1/7/2011 2:36 AM
 
Hi, I found my error, it is a wrong paths in data file. If I pasted code
new SlideShow.Control(); 

to the ascx page, I can see black Silverlight rectangle. I will resolve it.
I have a new problem,  silverlight rectangle is on the top of page, single, other DotNetNuke components (menu, other module above on it) I don't show.
Regards   
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSilverlightSilverlight's slideshow


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out