jQuery
$(".lnkpro").click(function () {
$.ajax({
type: "POST",
url: "uygulamalar.aspx/Getir",
data: '{name: "1234"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (sonuc) { $(".resimler").html(sonuc.d); },
error: function () { alert("error") }
});
});
VB.NET(网络方法)
<System.Web.Services.WebMethod()> _
Public Shared Function Getir(ByVal name As Integer) As String
Return name & " asdalo"
End Function
Hata verip duruyor lütfen bir yardımcı olun arkadaşlar 错误在哪里???