How to implement JSONP in an ASP.NET application

Can anyone suggest how I can implement Jquery JSONP in my ASP.NET project . I'm already using JQUERY AJAX , sorry, but I'm just very new to JSONP implementation. My application stream is described below:

1) I open the HTTP page where I have a jQuery login dialog box from which the username and password are sent to my Login.aspx page , which has one method "GetLoginDetails" , which sends the username and password and sends to WEBSERVICE , which verifies the username and password and returns with "success = true"

2), so in my answer I get "success = true", I read this value from jquery and it works according to the answer on my client side, the message "Recorded successfully" is displayed on it .

Please suggest how I can achieve the above functions using JQuery JSONP and .NET.

+3
source share

Source: https://habr.com/ru/post/1781215/


All Articles