Possible Duplicate:
Calling javascript from code behind
I wrote a javascript function on asp.net page. This is that..
function Alert(){ alert('hello'); }
I want to call this function from code-behind view. How can I do.
Possible Duplicate:
Calling javascript from code behind
I wrote a javascript function on asp.net page. This is that..
function Alert(){ alert('hello'); }
I want to call this function from code-behind view. How can I do.
You can use Page.RegisterStartupScript() to setup javascript code to be called on client side page load.