Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All

I have created a Web App in C#

In the same app, I have added a web service and written some function there.

now i wish to call this function on button click in default page.

please help to do so...

Thanks in advance
Posted
Comments
CHill60 21-Jan-15 7:04am    
What have you tried?
Shilpa_g2 21-Jan-15 7:26am    
yes... i am able to call function separately written web service, but not the one in same web app

1 solution

You'd be better creating your web service in a separate project, then adding a reference to the web service in your web app.

Then in your web app where you want to invoke the web service function, simply include the web service namespace and call the necessary function(s) as required.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900