Rank: Advanced Member Groups: Member
Joined: 6/23/2010 Posts: 48
|
Hi,
I have a small issue with the Slide control and the interval. I have a Linq-datasource that provides the data according to your example “Templated Slide”. Everything looks OK to me, no fundamental changes other than the datasource.
It works fine, except the interval variable.
- The ”slide-show” starts - First image displays according to the interval variable e.g. 10 seconds (10000 milliseconds) - The second are just displayed for less than a second - The third displays according to the…. - … and so on according to a full loop and starting over again
The impression of it is as it “jumps over” every image with an even number. I’m not understanding what might occurring it.
I respect your support policy, but as I don’t see a reason for this error in my code that I enclose below, maybe you have some idea or suggestion how to solve it. Or, if there are other support errands on this topic, etcetera.
Best Regards,
ITMA
ASPX_________________________________________________________________
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Slide.ascx.vb" Inherits="Controls_Default_Slide" %>
<link id="lnk" runat="server" href="~/Styles01.css" rel="stylesheet" type="text/css" />
<asp:TextBox ID="txtColID" runat="server" Enabled="False" Visible="false"></asp:TextBox> <asp:TextBox ID="txtHeading" runat="server" Enabled="False" Visible="false"></asp:TextBox> <asp:TextBox ID="txtUsp" runat="server" Enabled="False" Visible="false"></asp:TextBox> <asp:TextBox ID="txtUrl" runat="server" Enabled="False" Visible="false"></asp:TextBox> <asp:TextBox ID="txtEditor" runat="server" Enabled="False" Visible="false"></asp:TextBox> <asp:TextBox ID="txtHeight" runat="server" Enabled="False" Visible="False"></asp:TextBox>
<div> <eo:Slide runat="server" ID="Slide1" NavPanelStyle="slide_nav_panel" ItemNumberStyle="slide_item_number" BigItemPanelStyle="slide_big_item_panel" > <BigItemTemplate> <div style="width:100%;vertical-align:top;"> <div style="width:100%;text-align:center;"> <img src='<%#ResolveUrl(Eval("image").ToString())%>' alt='<%#Eval("title")%>'/> </div> <div style="padding: 5px"> <p style="font-family: Arial; font-size: 17px; color: #16387c; font-weight: bold"><%#Eval("title")%> </p> <p style="font-family: Arial; font-size: 13px; color: #333"><%#Eval("summary")%></p> </div> </div> <div style="width:100%;vertical-align:bottom;"> <div id="divUrlDocu" runat="server" class="tbStyle02td00" style="width:50%;height:100%;float:right;"> <asp:HyperLink ID="hplUrlDocu" runat="server" ForeColor="DarkViolet"></asp:HyperLink> </div> <div id="divGetDocu" runat="server" class="tbStyle02td00" style="width:50%;height:100%;float:right;"> <asp:LinkButton ID="ltnGetDocu" runat="server" ForeColor="DarkViolet" ToolTip='<%#Eval("GetDocu")%>' Text='<%#Eval("GetText")%>'>LinkButton</asp:LinkButton> </div> </div> </BigItemTemplate> </eo:Slide> </div>
end ASPX_____________________________________________________________
ASPX.VB______________________________________________________________
Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports System.Linq Imports EO.Web
Partial Class Controls_Default_Slide Inherits System.Web.UI.UserControl
Dim db_A01 As New A01_UsersNavigateContext
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then Dim xHeight As Integer Dim xGetDocu = True Dim xUrlDocu = True
Dim xWebSlideNameID = 8
Dim SlideMeta = (From a In db_A01.X03WebSlideNames Where a.WebSlideName_ID = xWebSlideNameID Select a).First Slide1.AutoLoop = SlideMeta.WebSlideLoop = 1 Slide1.AutoStart = SlideMeta.WebSlideStart = 1 Slide1.Interval = 1000 * SlideMeta.WebSlideSeconds
xHeight = CInt(Left(txtHeight.Text, InStr(txtHeight.Text, ",") - 1)) If xGetDocu = True Or xUrlDocu = True Then _ xHeight = xHeight - CInt(15)
Slide1.BigItemHeight = xHeight Slide1.BigItemWidth = CInt(Session("MidWidth"))
Dim SlideShow = From a In db_A01.X03WebSlideDatas Where a.WebSlideName_ID = xWebSlideNameID Select a
Slide1.DataSource = SlideShow Slide1.DataBind() Else End If End Sub
End Class
end ASPX.VB__________________________________________________________
In WebConfig__________________________________________________________
<controls> <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagPrefix="eo" namespace="EO.Web" assembly="EO.Web"/> <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/> </controls>
____________________________________________________________________
|
Rank: Advanced Member Groups: Member
Joined: 6/23/2010 Posts: 48
|
Hi,
Coming back on topic "Templated Slide".
Previous posted support errand is solved. There was no error.
My apologizes!
Best Regards,
ITMA
|