Global Name for TreeView

  • Thread starter Thread starter mr.Hyde
  • Start date Start date
M

mr.Hyde

Hi,

My component is working with databse,
one of method fills treeview and
I want to use it in ASP and WinForms also,
but if I join using System.Windows.Forms to this component
will can't use it in ASP and webforms vice'versa,
How I should to do this?

Thanx for help.
Hyde
 
You could, potentially, write a class that could be used in both, but the
amount of coding already done in the framework is lost. You would have to
have hte component figure out where it was (configuration would be easiest,
possibly through reflection on its parent, etc.), but it would cost more
time than coding two components.

My suggestion: Move all but the binding info to a class library and code two
GUI components that use the underlying component. It gives you the most
reuse and makes the job a bit easier to complete.


--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
Back
Top