Click here to Skip to main content
16,013,747 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900