Click here to Skip to main content
12,554,623 members (52,842 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi all,
I need to call a handler (ashx) file from jQuery to fetch some data at runtime. My jQuery function looks like:
<script src="./Scripts/Jcrop/js/jquery.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
     $("#txtCardHolderName_LL").keyup(function () {
                url: "HandlerHinditoEnglish.ashx",
                type: "POST",
                success: function (data) {
                error: function (data) {

Handler code
public void ProcessRequest(HttpContext context)
       context.Response.ContentType = "text/plain";
       context.Response.Write("Hello World");
   public bool IsReusable
           return false;

But it is not firing on key up of textbox please help i need to all handler function onkeyup of my textbox.
Posted 22-Nov-12 1:04am
Pratika05 22-Nov-12 7:23am
hey i solved this by puutin script at bottom of page after body tag now i aslso want to pass some parameters to handler and show result returned by handler pls help me

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please refer the articles below for your requirements.

1. Use ASP.NET’s HttpHandler to bridge the cross-domain gap[^].
2. ASP.NET Advanced Generic Handler ASHX[^]. Go through it and download the source code[^] to see how exactly it is implemented.
3. jQuery + Ajax + ASP.NET Generic Handler = Interactivity and Performance [^]
4. Troubleshooting jQuery AJAX call using Generic Handler in ASP.NET[^]. The question contains the implementations.


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.161021.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2016
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