Is overloading possible in web services?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the good practice to implement validations in aspx page?
How many classes can a single .NET DLL contain?
What is the other method, other than GET and POST, in ASP.NET?
What is web.config and machine.config ?
How to refresh a page in asp.net
How is the asp.net mvc architecture different from others? : asp.net mvc
What websites use asp.net?
What is difference between user control and custom control?
How use Xml data in ASP.net?
Differentiate between authentication and authorization.
How do you do validations. Whether client-side or server-side validations are better ?
2 Answers InfoLinks, Microsoft,
Can we use http handlers to upload a file in asp.net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)