Click here to Skip to main content
11,481,838 members (65,117 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

How to call a normal method from a webmethod?

, 5 Nov 2012 CPOL 0
You declare the private method what you wants to call as static[WebMethod]public static string MyWebMethod(string postCode){// My webmethod codestring str = MyPrivateMethod(2,5);}private static string MyPrivateMethod(int a, int b){// My private method code}Sorry, If I...

Revisions


  

Compare Revision Minor Date Status Editor
3 - publicly available No 6-Nov-12 2:57 Available MT_
Updates in content. 135 changes had been made.
2 No 6-Nov-12 2:42 Available MT_
Updates in content. 12 changes had been made.
1 No 6-Nov-12 1:36 Available MT_

License

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

Share

About the Author

MT_
Technical Lead
India India
Tech lead working on Microsoft technologies (C#,VC++,ASP.Net,SQL etc) for about 15 years

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150520.1 | Last Updated 6 Nov 2012
Article Copyright 2012 by MT_
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid