S
Steve H.
I use a base page, and decided that an abstract function is best for
guaranteing that the page has been checked for permissions.
basepage (inherits from Page)
-------------------
protected override void oninit(eventargs e)
{
if(!haspermissions())
response.redirect ("/notallowed.aspx")
}
child pages (inherits from basepage)
-------------------
protected override bool haspermissions()
{
return(true)
}
this breaks design mode, are there other ways of doing the same that would
also allow developers to use design mode?
We cant use the builtin formsbased authentication because 3/4 of our current
code is written in asp3.0.
guaranteing that the page has been checked for permissions.
basepage (inherits from Page)
-------------------
protected override void oninit(eventargs e)
{
if(!haspermissions())
response.redirect ("/notallowed.aspx")
}
child pages (inherits from basepage)
-------------------
protected override bool haspermissions()
{
return(true)
}
this breaks design mode, are there other ways of doing the same that would
also allow developers to use design mode?
We cant use the builtin formsbased authentication because 3/4 of our current
code is written in asp3.0.