1
Reply

i want to call java script function without any event and call from .aspx.cs file. how's it possible?

Rachit Patel

Rachit Patel

16y
11k
0
Reply

    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