Jquery Ajax Call does not Call the function in .CS file

后端 未结 3 1778
旧巷少年郎
旧巷少年郎 2021-01-26 02:27

Always i get the alert in the \"error\". When i debugged i get the type,url as undefined. can anyone help me why that method is not getting called??

$(document).         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-26 02:39

    Hi all i just used the jquery file hosted with google.

    It worked out fine.

    Previously i was using the jquery version 1.7.1 that i had downloaded and stored in my local. I also saw a lot of questions in the forum that this particular ajax call is quite not happening properly with .NET 4. I am not sure and forgive me if i am wrong but i do have a feeling that 1.7.1 in this case is not properly working with ASP.NET 4.

    P.S -> I used this in the script tag --> src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"

提交回复
热议问题