I can understand your confusion, especially since it seems that web
application development must be new to you. The term "User Control" is used
to mean different things in different contexts. Basically, the generic idea
of "User Control" is a Control that is defined by the developer, rather than
part of the pre-existing platform Controls. Some of the confusion arises due
to Microsoft's naming of a specific type of System.Web.UI.Control as a
"UserControl." This refers specifically to a templated control which, like
System.Web.UI.Page, has 2 components: A Template file and a CodeBehind
class. However, in ASP.Net, there are 3 other distinctions of Controls.
First, there is the base class, System.Web.UI.Control. From this, 2 other
namespaces of classes of Controls are derived: HtmlControls and WebControls.
Note, however, the parent NameSpace: System.Web.UI. A Windows Form Control
is in the NameSpace of System.Windows.Forms.Control. As you can see, these
are completely un-related in terms of NameSpace and functionality. A Windows
executable is an application that operates in the local machine environment.
An ASP.Net application is an application that operates in the context of a
web server. And never the twain shall meet. The similarities are due to the
fact that both types of Controls are defined as Controls because they are UI
components, but beyond that they share nothing in common. A Windows Form
Control renders by drawing to a graphic device. A Web Control renders by
emitting HTML to a stream.
So, bottom line: You can't use your Windows Form Control in an ASP.Net
application. The alternative is to create a System.Web.UI.Control which
renders itself to an HTML document by emitting HTML.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
news:e9**************@tk2msftngp13.phx.gbl...
I have created a User Control (a Pareto Chart) using C#. It works great
in .Net Windows Apps, but I also need to use it in a Web Application (to
view in IE). Everything I read on this seems to be talking about Web
Controls (although the terms "Web Control" and "User Control" seem to be
used interchangeably). Can I use this Control in IE even though its not a
Web Control? Whats the alternative? The Control project is fairly
extensive, using several windows forms, datagrids, and GDI+ for drawing the
chart onto the User Control. thanks.
---
Posted using Wimdows.net NntpNews Component -
Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup
engine supports Post Alerts, Ratings, and Searching.