How to call javascript function from code

Possible duplicate:
Call javascript from code behind

I wrote a javascript function on an asp.net page. This is what..

function Alert () {warning ('hello'); }

I want to call this function from a code view. How can i do.

+3
javascript
Jan 31 '11 at 5:11
source share
1 answer

You can use Page.RegisterStartupScript() to configure javascript code to be called on the client page.

0
Jan 31 '11 at 5:13
source share



All Articles