Web Service
建立Web Service
建立Web Service
建立Web Service
建立Web Service Web Service區塊
建立Web Service [WebMethod] public int area(string length, string width) { int x=Convert.ToInt32(length); int y=Convert.ToInt32(width); return x*y; }
建立Web Service
建立Web Service
測試Web Service
測試Web Service
呼叫使用 Web Service
呼叫使用Web Service
呼叫使用Web Service
呼叫使用Web Service
呼叫使用Web Service
呼叫使用Web Service
呼叫使用Web Service private void Button1_Click(object sender, System.EventArgs e) { localhost.area myarea=new localhost.area(); int z=myarea.sqarea(TextBox1.Text,TextBox2.Text); TextBox3.Text=z.ToString(); }