Y
Yonatann
Hi,
I've created some custom control using C#, i want on form load, via JScript,
to pass some data to my control.
However, i can not access any of my control propeties using the script:
var usersControl = XDocument.DOM.selectSingleNode("//my:field1");
usersControl.Value = "456";
or
usersControl.displayField = "33";
Altought those properties are com visible:
[ComVisible(true), Browsable(true)]
public string displayField...
It seems like the DOM.selectSingleNode returns the control's data from the
form's XML and not the control instance itself.
How can I interact with my custom control using script in the form? My main
goal is to pass data from web service to my contro.
Thanks.
I've created some custom control using C#, i want on form load, via JScript,
to pass some data to my control.
However, i can not access any of my control propeties using the script:
var usersControl = XDocument.DOM.selectSingleNode("//my:field1");
usersControl.Value = "456";
or
usersControl.displayField = "33";
Altought those properties are com visible:
[ComVisible(true), Browsable(true)]
public string displayField...
It seems like the DOM.selectSingleNode returns the control's data from the
form's XML and not the control instance itself.
How can I interact with my custom control using script in the form? My main
goal is to pass data from web service to my contro.
Thanks.