Thanks Jpuckett. However, I figured out my own solution. After days on this here what I came up with. The jscript is changed as follows:
<script type="text/javascript">
function DisplaySearchResults(searchtxt) {
var html = $.ajax({
url: "/MallSearch/" + searchtxt,
async: false
}).responseText;
$("#suggestions").html('');
$("#suggestions").append(html);
}
</script>
I removed the
lblSearchResults
label and just populate the
<div id="suggestions">
div tag.