In order to call the JavaScript function from Code Behind without using ScriptManager, one has to make use of the RegisterStartupScript method of the ClientScript class in ASP.Net using C# and VB.Net. The following HTML Markup consists of an ASP.Net Button and a Label control. XML.