Pergunta

I have a pure JavaScript/html page (e.g., index.html) that is secured by a Login.aspx page with a asp.net login control. After a user input his account info, I want to get the list of roles that this authenticated user belongs to by using JavaScript in the index.html page. Can someone tell me how to do it?

Many thanks,

Wei

Foi útil?

Solução

Use an ajax call, which is quite easy if you are using jQuery's ajax.

$.get('/some/url/to/retrieve/the/roles/from', function(roles) {

});
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top