Hi,
You should create java script function in js file or in script tag, and after that call it from code behind like:
<script type="javascript">
function test(){
}
</script>
Then call test() function from code behind,
ScriptManager.RegisterStartupScript(this, this.GetType(), "javascript", "test()", true);