Web Control Library

  • Thread starter Thread starter Mark Goldin
  • Start date Start date
M

Mark Goldin

How do I actually add controls to Web Control Library project?
Can I do it visually or it's all in code?
 
I see.
Where can I find a sample of how to create a custom control
that would have a label and a text box?
 
If you want to design the controls visually what I do is create a second web
project and add all my controls to that. When I need to use the library I
just copy the ascx files into my main web app and add a reference back to my
'controls' web project. I do this to allow our designers access to the
control layout without letting them near the code. It also means that you
have a easy maintainable base line set of the ascx controls that you can
copy into a new project when every you need to use the library.

I would add that this plan seems to have been screwed by asp.net 2.0 as it
would seem that you can no longer add a reference to a web project within a
solution, in fact I cant even find the assembly the project creates at the
moment ;-)

Stephen.
 
Back
Top