Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have WCF DATA SERVICE and i have to use in aspx code behind but not in WPF. can any one tell me how it is. quick response appreciated.
Posted

1 solution

First U have to run Your wcf service then notedown your link of wcf servcie
and uhave to add this reference to your asp.net application (choose -->add web reference-->then follow instructions)
then simply create object for service class(ServiceReference1.Service1Client) then call method which is u written in wcf service like obj.Getdata(Convert.ToInt32(TextBox1.Text))
 
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