I have this code which is load the .aspx element the #maincontent div - it works but when I click another button witch is load the page same #maincontent div I see the console a lot of deal.aspx and ta.aspx loaded.
How can I do the one click one page load? or how to clear the recursive stack.
jquery code:
$("#tre").click(function () {
$("#mainContent").load("subMenu1/deal.aspx");
});
$("#tra").click(function () {
$("#mainContent").load("subMenu1/ta.aspx");
});
C# :
<div runat="server" id="mainContent"></div>
I have a solution, but I made a mistake.
So When I call the .aspx I didn't notice that aspx file has got attached script file, what is include again this page calls
$("#tre").click(function () {
$("#mainContent").load("subMenu1/deal.aspx");
});
$("#tra").click(function () {
$("#mainContent").load("subMenu1/ta.aspx");
});
> this caused the multiple page call. Now I fix the problem. Thanks for the help. It was very useful.