Javascript is an Event Oriented Programming Language. If you want to call any javascript funtion from code behind,you can use System.Web.UI.ScriptManager.RegisterStartupScript (panAddDetails,this.GetType(), "click", "javascript:DisableOnLoad();", true); where panAddDetails - Is the id of a Panel. DisableOnLoad() - Javascript method to call. cheer'S Vivek