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 name of the base class that all web forms will be inherited?
I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format?
How do you register the .Net Component or Assembly?
What is the difference between Hash table and Array list?
what is the difference between console.writeline &console.output.writeline?
Features in ASP.NET?
What is the lifespan for items stored in ViewState?
How do I open an ashx file in windows 7?
Difference between datagrid and datareader?
What is HTTPModule and HTTPcontext? What is the use of each?
What is the concepts of globalization and localization in .net?
What is the difference between a default skin and a named skin?
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)