calling javascript function from code behind

redcrash

New Member
I am trying to call a javascript function from code behind on the button click event. below is my javascript code.\[code\] ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "strScript", "javascript:clearBox();", true);\[/code\]and the function is\[code\]<script type="text/javascript">function clearBox() { alert("Test");}</script>\[/code\]I get an error "Object expected"
 
Back
Top