Hi all,
I am using DC.Web.HttpCompress for compression and its amazing for optimizing the performance. But I have an issue with, when i use Ajax Methods, null value is returned. But when I disable the Compression it works fine. Any ideas for this issue.
Following is the code :
[Ajax.AjaxMethod()]
public int DatainsertIntoTemp(string postedid, string userid, string type)
{
count = objpost.CheckPostedIDExistorNot(postedid, userid, type);
return count;
}
protected void Page_Load(object sender, EventArgs e)
{
Ajax.Utility.RegisterTypeForAjax(typeof(SellOfferDefault));
}
<script type="text/javascript">
function checkfromcontactme(val,type)
{
var res="";
res=SellOfferDefault.DatainsertIntoTemp(val,userid,type);
alert(res.value);
}
</script>