Onload_post_render - form event not working

i created a client script for a web form in which i used “onload_post_render” form event

and above script will call a method in server side and below is the code of the server side method

but when the web form is loading the server side funtion is not running