B
baroque Chou
The purpose is simple, I want to display a list of photo thumbnails,
and each has it's own access level defined, only authorized internet
user can view the full size photo.
in order to achieve this, I write line of code in the codefile to judge
whether the current user has right to view further, and if not, say,
RegisterStartupScript("startupScript", "<script
language=JavaScript>alert('you don't have right to
view!');</script>");
This works fine when the user click the unauthorized photo with the
alert jumped, while the user move on to other photos that is
accessable, the page turn to the full size photo, when he or she try to
click the back button on the browers, the alert jumped again which is
not what I want.
it may be caused by the startup script, is there any solution as to
achieve this purpose ?
and each has it's own access level defined, only authorized internet
user can view the full size photo.
in order to achieve this, I write line of code in the codefile to judge
whether the current user has right to view further, and if not, say,
RegisterStartupScript("startupScript", "<script
language=JavaScript>alert('you don't have right to
view!');</script>");
This works fine when the user click the unauthorized photo with the
alert jumped, while the user move on to other photos that is
accessable, the page turn to the full size photo, when he or she try to
click the back button on the browers, the alert jumped again which is
not what I want.
it may be caused by the startup script, is there any solution as to
achieve this purpose ?