how to get redirect url from ajax handler in c#
i am sending a request to ajaxhandler i want if the use开发者_如何学Pythonr is not logged in then it sends back a redirect url to login page and the page automaticaly redirects to login page after the ajaxrequest response
We do this by just passing the url along in a JSON response then just having the AJAX handler check for it and set the location, however this might pose a security issue, you might just want to send back a flag or something and keep the url on the client-side.
i have a idea that
sending request using json in json return the redirect url and when you get json result then redirect to specific page
精彩评论