Web Control Library

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?
 
M

Mark Goldin

I see.
Where can I find a sample of how to create a custom control
that would have a label and a text box?
 
S

Stephen Woolhead

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top