2012-03-27 12 views
0

ハンドラが定義されていません。キャッチされないのReferenceErrorは:私はC#のハンドラ(.ashx)を使用して、このエラーを取得する

ここ

ProviderGrid.js:23 Uncaught ReferenceError: Handler is not defined

それは私のハンドラファイルです:

<%@ WebHandler Language="C#" Class="dashVidence.Handler" %> 

using System; 
using System.Web; 

namespace dashVidence 
{ 

    public class Handler : IHttpHandler 
    { 
//ReturnProvider contain a method returning string datas 
     ReturnProvider rp = new ReturnProvider(); 
     public void ProcessRequest(HttpContext context) 
     { 

     } 

     public bool IsReusable 
     { 
      get 
      { 
       return false; 
      } 
     } 

     public string provider() 
     { 
      return rp.getProvidersList(); 
     } 

    } 
} 

ハンドラファイルをASPXで参照されていますファイル

+0

あなたのタグが間違っている可能性があります。これはextjsとは関係ありません。 – Amalea

+3

これはjavascriptエラーですよね?あなたのjavascriptはどこですか? – jrummell

+0

ProviderGrid.jsの23行目は何ですか? –

答えて

-1

Please add debugger; to this line.

$(function() { 
>   debugger; <------------------HERE 
>   $('#feedbackform').submit(function() { 

ブラウザで右クリックしてinspect要素を右クリックし、コンソールタブに移動します。あなたはこの行をヒットしない場合のonload私の自己を引用

debugging on in your web.configuration.

hit submit. if you hit the line just go through it line by line and the offending line will throw a error.

if it just throws a error like the image below. Sorry not enough rep points to post image directly. :(

http://postimg.org/image/5ke0jd6xv/

then it is the line above other wise check out the stack.

Hope this helps

を回す素晴らしいです:)

あなたは何をすべきかかかわらず、エラーがそれ以上のレベルでデバッガを挿入失敗したときです。 これはJavaScriptのエラーです

関連する問題