hello, i hope this is the right place to be.
I am new to asp runner, just downloaded three days ago and have the following code in my project and it doesn't work. I reviewed almost all
relevant pages and help file. I just can't see the problem. Basically, if a user logins in that has Manager or admin access (998 and 999) then the button should be enabled, otherwise it should be disabled.
In the editor (html mode):
{BEGIN administration_link}<SPAN class=buttonborder><INPUT class=button value="Administration" type=button {$administration_attrs}></SPAN>{END administration_link}
In after login event:
' I started with this
xt.assign "administration_link",Cint(SESSION("Access_LVL")) > 990)
then thought of simplifying. I if put a reponse.write (and END) inside the if, the value is correct for a given login
if Cint(session("Access_LVL") < 998) then
xt.assign "administration_link",false
else
xt.assign "administration_link",true
end if
Now, if the button is enabled and clicked, then the user should be redirected to an admin page. This one I can't even figure out at all. I know it would have something to do with an onclick and href, but I don't know where to put it.
i hope someone can help, this seems like a great tool for quick db development.
Roberta