can this be done? use a webcontrol from a webservice?

  • Thread starter Thread starter blarfoc
  • Start date Start date
B

blarfoc

our web application is 3 tiers, database, web services, and web
interface.

on the web interface we have a web custom control that wraps up our
tree view. it is special for us and has much code, javascript,
postbacks, and events, it makes sense to wrap it into a web custom
control because we will use it in many web applications. it interacts
with the database through web services. it cannot talk directly to the
database.
can it be put on a web server and consumed as a web service?
 
A Web Control is a UI. A Web Service is an API.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
Agree with Kevin; what you're asking doesn't really make much sense. Think
of it like an apple tree. Your data is the earth; your application is the
tree, your UI is the apples. You're trying to hang a tree off of an apple;
just doesn't make sense conceptually.

It does make a lot of sense, however, to factor out some of the code in your
megatreeview into reusable elements. For example;

+ the code that acquires the data for the tree.
+ the code that formats the data into XML for the tree.
+ the helper functions that determine the display characteristics of tree
nodes (e.g. icons, colors, and so on).
+ state routines that remember where a user was previously.
+ editing routines for adding/editing/deleting nodes from the hierarchy.

Factoring these out will make your control more manageable and offer a lot
more options in future apps.

/// M
 
Back
Top