jquery - ajax and security controller -
i'm using jquery ajax post , when success data , replace items works if add security controller that
[authorize] public actionresult .........
if user logged in go ok when user not logged or not authorized should redirected login page
as i'm using ajax , not ordinary post user not redirect log in window? can solve problem? or how can know user isn't authorized before post java display alert tell user log in or role didn't match?
i think these 2 questions can provide enough info set in right direction.
Comments
Post a Comment