Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
WebImageViewer slide in Content Page
posted

Hi, i have little problem with ContentPage.  

<script type="text/javascript">


        function SlideShow() {
            var viewer = $find("WebImageViewer1");
            viewer.navigateNext();
        }


    </script>

How to use this script correctly in ContentPage? 

 

i tried like this

 protected void Page_Load(object sender, EventArgs e)

        {

            string strScript = "<script type=\"text/javascript\"> function SlideShow() { var viewer = $find(\"WebImageViewer1\"); viewer.navigateNext(); } </script>";



            body.Attributes.Add("onload", "setInterval('SlideShow()', 3000)");


            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "onload", strScript);


 

        } 

but it's still doesn't work. Please help me to find solution, thanks