skip to Main Content

Jquery – Ajax Returns MasterPage File In Response Instead Of Return From Method From Current Page

Ajax returns masterpage html instead of returns from my method. Here is my client code: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page1.aspx.cs" Inherits="Page1" MasterPageFile="~/MasterPage.master" EnableEventValidation="false" %> function saveForm() { let formData = new FormData(); formData.append("name", "john"); $.ajax({ type: "POST", url: 'Page1.aspx?method=SaveForm', data:…

VIEW QUESTION
Back To Top
Search