1
jQuery와 함께 Ajax 기능을 제공하는 [System.Web.Services.WebMethod] 묶음이 있습니다. 내 코드 숨김 파일에서 호출 할 수 있습니까?자바 스크립트를 사용하지 않고 Asp.Net에서 WebMethod를 호출하는 방법
내가 파일에 다음의 WebMethod라는 DeleteImages.aspx.cs
[System.Web.Services.WebMethod]
public static string deleteImage(int id, int itemID, string fileName)
{
string deleteSQL = "DELETE FROM tItemsFiles WHERE [email protected]";
//run sql command
}
내가 다른 코드 숨김 파일에서이의 WebMethod를 호출 할 수있는 방법, 즉 CreateImage.aspx.cs가이 의미