$.ajax({
type: "POST",
url: "Qbs.ashx?acid=" + applicationCampaignId,
dataType: "text",
async: false,
success: function (result) {
totalrecords = result;
}
});
public long GetCounteOfCampaing(string acid)
{
long totalCount;
try
{
totalCount = Account2AppCampaignBusinessLogic.GetTotalRecordCounterOfCampaign(Common.CInt(acid));
}
catch (Exception)
{
totalCount = 0;
}
return totalCount;
}
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write(GetCounteOfCampaing(context.Request.QueryString["acid"]));
}
public bool IsReusable
{
get
{
return false;
}
}
type: "POST",
url: "Qbs.ashx?acid=" + applicationCampaignId,
dataType: "text",
async: false,
success: function (result) {
totalrecords = result;
}
});
public long GetCounteOfCampaing(string acid)
{
long totalCount;
try
{
totalCount = Account2AppCampaignBusinessLogic.GetTotalRecordCounterOfCampaign(Common.CInt(acid));
}
catch (Exception)
{
totalCount = 0;
}
return totalCount;
}
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write(GetCounteOfCampaing(context.Request.QueryString["acid"]));
}
public bool IsReusable
{
get
{
return false;
}
}
Comments
Post a Comment