Call ASP.NET web service method from JavaScript

前端 未结 5 730
Happy的楠姐
Happy的楠姐 2020-12-20 04:45

I have the web service:

[WebMethod]
public void SendMail(string _name, string _email, string _message)
{
    //Create Mail Message Object with content that y         


        
5条回答
  •  一整个雨季
    2020-12-20 05:42

    You have to pass the three parameters from the cs code page, by calling like this way,

    service.SendMail(name, email, message);
    

提交回复
热议问题