Hi,
Is the below code will work in the .net VS 2005 ?
I tried in vs2005 but the code not calling server method ?
<script type="text/javascript" language="javascript">
$(document).ready(function () {
$('searchbox').click(function () {
alert("hi");
$.ajax({
type: "POST",
url: "Products.aspx/Results",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
// Replace the div's content with the page method's return.
$("#Result").text(msg.d);
}
});
});
});
</script>
Thanks,
gg.