I have inherited a web app and I need to convert a client side ajax post into server side asp.net code ( C#). I am not sure what the best approach is to accomplish this, I am pretty new to ajax posts but this code seems to be posting info to a page in the same project so I am assuming there is a much easier way to accomplish this server side just wanted to have someone confirm that I am not crazy...
Code
$.ajax({
// type: "POST",
// url: '<%= ResolveUrl("~/default.aspx") %>/Login',
// data: parameters,
// contentType: "application/json; charset=utf-8",
// dataType: "json",
// success: function (msg) {
// if (msg.d == "success") {
// $.modal.autoResize = false;
// ResizeModal();
// var redirectUrl = $('#<%= btnSubmit.ClientID %>').attr('data-redirecturl');
// if (redirectUrl != null && redirectUrl.length > 0) {
// window.location = redirectUrl;
// }