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
Thakns Hristo. but it's not what I can't to do. I need carousel with interval. It's little different . Thank you for your replies
Here is the sample. WebImageViewer control is in ContentPage. Please check it out. You can modify it and send it back to me.
Hi, Hristo! Still doesn't work. I think i should put somewhere Interval in body attributes. Can u check this slide show on your project , Hristo? Thank you very much
Hello Nurys,
can you try to use:
<script type="text/javascript">
function SlideShow() {var viewer = $find("<%=WebImageViewer1.ClientID%>");viewer.navigateNext();}</script>I suppose that WebImageViewer control is on the Content Page. Can you tell us if there is javascript errorThank you
Does anybody knows how to decide this problem? please show the path where i can find solution