Call javascript function in ascx

2 posts, 0 answers
  1. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 30 Jan 2012 Link to this post

    hi  i am using RadToolTipManager to show Thumbunail of file when user mouseover the file link on grid
    in the ascx prerender event
    i download the swf file from the databse store in application path
    i need to chage the value property of <param> and src property of <embed>

    <object id="file"  width="240" height="200"
     <param id="ParamC"  name="SRC" value="Paper.swf">
     <embed id="embedC"  src="Paper.swf" width="240" height="200"></embed>

    how to achive this?

  2. Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 31 Jan 2012 Link to this post

    Hi Johnny,

    You can the approach from this thread to set the parameter from the code-behind (via a dedicated method or a property for example).

    Another option is to inject the call to your JavaScript function that will make the needed modifications from the code-behind (again from the PreRender) event. How to do this is explained in this help article.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top