security of user controls in web application

A

Andy B

How do you keep the user controls in a web application secure? I.e. not
allowing access to them from the outside world. I want to have a dll with
the user controls and secondary code like custom providers and stuff
together in a dll. How do I do this?
 
N

Nathan Sokalski

I don't believe you can put UserControls in a dll if they use an *.ascx
file. It sounds like what you want is a custom control, which you can create
by inheriting from something such as Control or CompositeControl, or if you
like one of the existing standard controls. I have never tried doing it and
it is not the way it is usually done when creating a control library dll,
but you can even inherit the UserControl and add the child controls
programmatically. Try doing a little research on how to create controls by
inheriting one of the necessary classes, once you see a couple examples you
should be able to understand it better.
 

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

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top