DataGrid - launch JS function on ItemDataBound

Posted by Faruz on Stack Overflow See other posts from Stack Overflow or by Faruz
Published on 2010-03-24T06:52:25Z Indexed on 2010/03/24 6:53 UTC
Read the original article Hit count: 421

Filed under:
|

Is there any way to launch a JS function after a dataGrid launches its ItemDataBound event?

I've tried adding a JS block to the ItemDataBound function like:

protected void itemDataBound (e sender, arguments args)
{
    ClientScript.RegisterStartupScript(typeof(string),"test","alert('testing');",true);
}

but it did nothing.

Am I missing something?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about .NET