Hi,
Yes you can use Javascript functions inside widgets. But there is a trick.
We create your widget after an async postback and a dashboard may have multiple instances of your widget. So to prevent dublication, I recommed you to put all your javascript functions inside a seperate js file and reference this file
from the page in which DashboardSurface control is located. Then you can use your functions.
If you just need to set a hidden variable you can also use inline javascript like
<button onclick="javascript:alert('xxx') > ...
-tansu
Tansu TURKOGLU
Development Team
www.dynamicdashboards.net