When I am adding the \"Web Reference\" we are giving the address to the asmx page to visual studio.
How Can I set this at run time?
YourWebService service = new YourWebService(); service.Url = "http://www.example.com/YourWebService.asmx"; service.CallMethod();