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
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
What are server objects?
What is the application pool?
Explain the advantages of passport authentication.
From which base class all web forms are inherited?
How to fetch a data from one table to another table in asp.net ?
What are the disadvantages of using session?
What is css and what is it used for?
Explain the working of passport authentication.
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
Which is better session or viewstate?
Explain authorization levels in .net ?
What is class and object in asp.net?
How many types of cookies are there in asp.net?
What is query string in asp.net?