I have a HTTP handler (.ashx) which generates some html code from database and I want to call it from my Jquery function and pass a value (userID).
I am not sure how to call it and retrieve its data.
I have a HTTP handler (.ashx) which generates some html code from database and I want to call it from my Jquery function and pass a value (userID).
I am not sure how to call it and retrieve its data.
something like this.
$(document).ready(function() {
$.get("http://path/to/handler.ashx", function(html) {
alert(html);
});
});
Use Google - first site after typing jquery ashx
- https://sites.google.com/site/spyderhoodcommunity/tech-stuff/usingjqueryinaspnetappswithhttphandlersashx