1

Is it possibile to call javascript function from DirectEvent in Ext.Net 3?

1 Answer 1

1

Try:

X.Js.Call("myFunctionName", "param1", "param2");
Sign up to request clarification or add additional context in comments.

6 Comments

Works fine for me! Thank's @Stefano Lonati
It's possible to create the javascript function that I want to call directly from code behind?
Ummm...interesting question... try this: string callbackScript = "function HelloFromJavascript(){alert('hello Javascript!!')}"; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "HelloFromJavascript", callbackScript, true);
Yeah! Work perfectly for me! Thanks again!
I noticed that this method is not working in ajaxEvent. There is a method to call a javascript function that show only one alert in this case?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.