Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
function senddescription(context){
 var desc;
desc = $.trim($("#txtDetails_" + context).val());
 var feature = "description";
var p ={'description': desc,'feature': feature}
var success = function (msg) {
.....
/*some Code*/
......
}
 var datatype = "json";
        CallHandler(m, p, success, null, null, datatype, true);
}

function CallHandler(m, p, s, e, f, t, async) {
    var asyn = false;
    if (async != undefined && (async == true || async == false))
        asyn = async;
    $.ajax({
        type: m, 
        url: "../Handler.ashx", 
        data: p,
        contentType: "application/json; charset=utf-8", 
        dataType: t, // Set return Data Type
        async: asyn,
        cache: false,
        success: s,
        error: e != null ? e : function (xhr, msg, e) {
           .....
/*error Code*/
......
        }
    });
}


I have written this code

I am passing description as 2000 charactors
when iam passing it to handler I am getting Not found alert

How to resolve that issue

[edit]Code block added[/edit]
Posted
Updated 11-Jun-13 23:48pm
v2
Comments
Zafar Sultan 12-Jun-13 5:56am    
How are you handling parameters in Handler.ashx?
syna syna 13-Jun-13 10:37am    
It is not going to handler

1 solution

try to put debug point in your handler method.
 
Share this answer
 
Comments
syna syna 13-Jun-13 10:37am    
It is not going to handler

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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