Click here to Skip to main content
12,826,806 members (32,928 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET Ajax jQuery ASHX
Hello All, i want to pass a parameter from .js file to ASHX Handler using jQuery.ajax
this is my js function
function SendPath(input) {
        'type': 'POST',
        'url': './Upload.ashx/PathMethod',
        'data': {
            'name': 'Programmer',
        'success': function (msg) {

and this is my ASHX WebMethod
    public static string PathMethod(string name){
        return name;

after I passed parameter to PathMethod, the result of
is 'undefined'.

how can I solve this problem?????
Posted 13-Feb-13 23:15pm
ryanb31 14-Feb-13 8:53am
Is it hitting your method in c#?

1 solution

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

Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100