Posted on Dec 14, 2011 (permalink)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
head
runat
"server"
title
></
</
body
form
id
"form1"
div
telerik:RadScriptManager
ID
"ScriptManager1"
telerik:RadRotator
"RadRotator1"
RotatorType
"SlideShowButtons"
SlideShowAnimation-Type
"Fade"
Width
"400"
ItemWidth
Height
"200"
ItemHeight
CssClass
"rotator"
ScrollDirection
"Left,Right"
ControlButtons
LeftButtonID
"prevButton"
RightButtonID
"nextButton"
/>
using
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Web.UI;
System.Web.UI.WebControls;
Microsoft.Office.Core;
Microsoft.Office.Interop.PowerPoint;
Telerik.Web.UI;
System.Data;
System.Collections;
public
partial
class
_Default : System.Web.UI.Page
{
MyFunctions obj =
new
MyFunctions();
String webPath = System.Configuration.ConfigurationManager.AppSettings[
"websitePath"
];
protected
void
Page_Load(
object
sender, EventArgs e)
if
(obj.convertPpt(
"myfile.pptx"
) ==
"true"
)
RadRotator rr = RadRotator1;
rr.DataSource = CreateRotatorData();
rr.DataBind();
this
.Controls.Add(rr);
}
//if obj.convertPpt
else
Response.Write(
"We couldn't convert the power point"
);
//else
//page_load
private
ArrayList CreateRotatorData()
ArrayList al =
ArrayList();
al.Add(ResolveUrl(webPath +
"powerPointImages\\Slide1.jpg"
));
"powerPointImages\\Slide2.jpg"
return
al;
//CreateRotatorData
// _Defautl
Reply
Posted on Dec 19, 2011 (permalink)
Back to Top
[ ASP.NET Rotator Features | Documentation | Demos | Telerik TV | Self-Paced Trainer | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below