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
Does anybody knows how to decide this problem? please show the path where i can find solution
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