This is a migrated thread and some comments may be shown as answers.

Call javascript function in ascx

1 Answer 107 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 2
Johnny asked on 30 Jan 2012, 10:33 AM

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"
 classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
 pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
 <param id="ParamC"  name="SRC" value="Paper.swf">
 <embed id="embedC"  src="Paper.swf" width="240" height="200"></embed>
 </object>

how to achive this?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 31 Jan 2012, 04:03 PM
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,
Marin
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
Tags
ToolTip
Asked by
Johnny
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or