E
Enterprise Library msi not found
Guest
Hi I copied example of ajax and tried to run it. I am using .net 4.6.1 web form. I am getting error: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
is this CORS issue? Please help
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Ajax._Default" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>
<script>
$(document).ready(
function () {
$('button').click(
function () {
$.ajax({
url: "./test.txt",
success: function (data) {
$('#div1').innerHtml = data;
}
});
})
}
);
</script>
</asp:Content>
I am getting run time error:Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
Continue reading...
is this CORS issue? Please help
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Ajax._Default" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>
<script>
$(document).ready(
function () {
$('button').click(
function () {
$.ajax({
url: "./test.txt",
success: function (data) {
$('#div1').innerHtml = data;
}
});
})
}
);
</script>
</asp:Content>
I am getting run time error:Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
Continue reading...