Jquery code is not workinng in ASP.NET

I recommend that you use Postman to generate the C# code, see here:

The linked forum post is about PHP, but you can use postman to generate code for ASP.NET, too.