add webusercontrol
-
hi how can I add usercontrol in a project calss library
-
hi how can I add usercontrol in a project calss library
For practical purposes, you can't. A Web User Control is comprised of an HTML portion and a code (behind) portion. The code portion could be compiled into a class library (and is), but the HTML portion (the ASCX file) can't. If you need a control that can be completely contained within an assembly, try a server control (e.g. a composite control that handles all of its rendering from code). Server controls are much less design-time friendly with regards to layout than are user controls, but they do offer some degree of portability that user controls do not. Hope this helps.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’