$.ajax and ashx page

I am using the following code to store values in aspx session.Code: $(“div.menu_body a”).click(function() var linkHeaderID = $(this).parent().attr(“id”); $.ajax( type: “GET”, url: “SessionHandler.ashx”, data: “headerLink=” + linkHeaderID + “&link=” + this.id ); });Problem:For the first 3 to 5 selection of link is …

via Asp.Net Developed Tutorials » Search Results » ajax:

$.ajax and ashx page

I am using the following code to store values in aspx session.
Code:
$(“div.menu_body a”).click(function()
var linkHeaderID = $(this).parent().attr(“id”);

$.ajax(
type: “GET”,
url: “SessionHandler.ashx”,
data: “headerLink=” + linkHeaderID + “&link=” + this.id
);
});Problem:
For the first 3 to 5 selection of link is working properly. After that the control is not hitting the SessionHandler.ashx page.
Regards, Geetha.
…………………………………………

It might be a caching issue. Try setting the cache property also. See jQuery.ajax( settings )
Try
$.ajax(
type: “GET”,
cache: false,
url: “SessionHandler.ashx”,
data: “headerLink=” + linkHeaderID + “&link=” + this.id
);
});

For more info: $.ajax and ashx page

Asp.Net Developed Tutorials » Search Results » ajax

$.ajax and ashx page

Share this post:

Related Posts

Leave a Comment