Hi i am writing a code to send file from javascript to web mothod, but my web method is not isteat it called pageload method. please help
here is my code
$.ajax({
type: "POST",
url: "Content_New.aspx/UploadFiles",
data: obj,
processData: false,
contentType: false,
dataType: "json",
success: function (result) { alert("successful!"); },
//async: true
})
[WebMethod(EnableSession =true)]
public static void UploadFiles()
{
} 
chetan shinde107 reputationPosted Aug 23, 2017, 3:23 AM EDT
chetan shinde107 reputationPosted Aug 23, 2017, 3:37 AM EDT
chetan shinde107 reputationPosted Aug 23, 2017, 4:02 AM EDT
Buse SorinRank #2,322 · 608 reputationPosted Aug 23, 2017, 4:25 AM EDT
chetan shinde107 reputationPosted Aug 23, 2017, 5:13 AM EDT
chetan shinde107 reputationPosted Aug 23, 2017, 5:20 AM EDT
Puneet KankarRank #446 · 5.6K reputationPosted Aug 23, 2017, 6:04 AM EDT