Casting WebForm TreeNode ( TreeView ) to WinForms TreeNode

Casting WebForm TreeNode ( TreeView ) to WinForms TreeNode

Post by djp » Sun, 25 Mar 2007 23:25:07


Hi
I add web reference to my C# client app and call web method that returns
TreeNode.
I tried to cast WebService TreeNode to Windows Forms TreeNode, but without
any effect.
Any ideas?

Thanks
PK
 
 
 

Casting WebForm TreeNode ( TreeView ) to WinForms TreeNode

Post by John Saund » Tue, 27 Mar 2007 08:12:47


TreeNode is a platform-specific type, and should not be returned by a web
service. Instead, return the data that fills the tree node.

John