Is overloading possible in web services?
Answer Posted / neha
Yes it is possible but you have to give different alias name to the web method so that ambiguity can be avoided
---method will be call from application by the name AddInt
[WebMethod Name ="AddInt"]
public void Add(){}//implement code for adding 2 int variable
---------In this step even if you dont give name attribute it will work and method will be called by name Add.
[WebMethod Name ="AddFloat"]
public void Add(){}//implement code for adding 2 float variable
else it will give error
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Why is global asax is used for?
How many types of session state management options available in asp.net?
What is simple data binding?
Explain State management in asp.net
What r the asp.net list controls and difference between them?
Define page fragment caching?
What is _viewstart?
What is data reader in asp.net?
What is form submit?
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?
What is a 401 redirect?
Explain client side state management system.
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
What is enableviewstate?
Explain the code Access Security (CAS) in .net Framework?