Click here to Skip to main content
15,878,048 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am new to web services.

I can see the code by default in services.cs file

C#
[WebMethod]
    public string HelloWorld() {
        return "Hello World";


Please tell me why we are adding [WebMethod] on top of every function that we are writing.
What does it mean. Please help.

Thanks in advance
Posted

Hey there,

Take a look, I hope you'll find what you are looking for:
Web Method Attribute[^]

Azee...
 
Share this answer
 
I think yoh had already gone through a lot of result for this question but refer below mention link you might found your desired solution.

Click Here[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900