security of user controls in web application

  • Thread starter Thread starter Andy B
  • Start date Start date
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?
 
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.
 
Back
Top