Hi Wisej,
I am using this code in javascript:
Wisej.Core.getComponent(“Button1”)
OR
this.Button1.Handle
OR
App.Window1.Button1.Handle
They all get null.
How to get id control when using javascript in wisej framework?
Thank you.
App.Window1.button1 is already the widget: i.e. App.Window1.button1.hide(), App.Window1.button1.show(), App.Window1.button1.execute(), …
You can retrieve a widget using the unique id like this: widget(“id_22”);
When calling from the server, simply use “this”: i.e. this.button1.Eval(“this.hide()”), or this.button1.Call(“hide”). You can also pass widgets as parameters from the server, Wisej takes care of marshalling the reference to/from the server/client. i.e.: this.Call(“doSomething”, this.button1).
From javascript on the client you can also call [WebMethod] methods directly and pass maps and even other widgets, again Wisej marshals the reference:
App.Window1.SomeServerMethod(App.Window1.button1);
=>
[WebMethod]
public void SomeServerMethod(Button button) {}
—
If you have a specific requirement, please send sample code to show what you need to do.
HTH
Hi Luca ITG,
This is link: https://www.aspsnippets.com/Articles/Print-Crystal-Report-on-Client-Side-on-Button-Click-using-JavaScript-in-ASPNet.aspx
I want to do using iframe to quick print crystalReportViewer:
Thank you so much.