I think the functoin is called 'insertclientscriptblock'. Or you can put it in the aspx directly, or include it from there.
But, all ASP.NET questions are off topic here, please ask them at www.asp.net in future.