
Templates while using Forms Authentication
Hi all,
I plan to use templates in my web project based on the tutorials by
smartisans.com ( http://www.*-*-*.com/ ). I
also want to use forms authentication in web.config since the entire site
will be password protected.
The problem is that I can't find an easy solution for using the
authentication together with the template (one .aspx-page containing a
placeholder for the content). Are there any tutorials on this? Here's my
web.config:
<authentication mode="Forms">
<forms name="NewsletterFormsAuth"
loginUrl="login.aspx"
protection="All"
timeout="20" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
Since I want login.aspx to use the template as well, I need to allow
anonymous access to the default.aspx file, which is the template, but that
would also open up the rest of the site since all .ascx files are called
through default.aspx (like default.aspx?page=somepage.aspx)
How should I do this?
Thanks.
/Jonah