Interviews1 answer
i want to call java script function without any event and call from .aspx.cs file. how's it possible?
1 Answer
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
Vivek VPosted May 13, 2008, 8:51 PM EDT
