how to call a webmethod in webservices? its just similar to call a function of a dll. suppose your webservice is like : public class service1 : system.web.services.webservice { [webmethod] public double getinterest(double principle, double roi, double noofyrs) { return ((principle * roi * noofyrs)/100); } } to call this webmethod in another aspx page, all you have to do is: protected void button1_click(object sender, eventargs e) { webservicetest.service1 intservice = new webservicetest.service1(); textbox4.text = intservice.getinterest(system.double.parse(textbox1.text), system.double.parse(textbox2.text), system.double.parse(textbox3.text)).tostring(); }