As far as I know, the security only applies to pages, not to controls. You
can programmatically control access though (still use forms to authenticate,
but check credentials programmatically)
just do something like:
If User.Identity.IsAuthenticated()
'Load and add control only authenticated users can see
Else
'Load unauthenticated control, or do whatever processing you want to do
for anonymous users
End If
You can get a little more robust by using roles as well, and showing
different controls to users in different roles. If you need something more
robust, there are a ton of very good articles out there on using role based
security with forms authentication. I can point you at one if this sounds
like something you would want.
-PJ Pirrello
Jose Flores said:
I have only one page in my app (default.aspx) like portal starter kit. i
load at runtime the tabs and options of my app.
There are subdirectories in my app called Ficha01, Ficha02, etc, Everyone
can see the content of Ficha01 (user controls .ascx), but i want only
authenticated users see content of Ficha02 (it has only user controls
..ascx).