Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have a 2 dropdowns on a single web page based upon their selection I want to return the result. For that I am creating W CF web service in which I am checking the selected values of those 2 dropdowns and will return the result back to the web page.
But I am not sure how I can use the selected values of those 2 dropdowns in web service.
Any help please.

Thanks,
Nilesh
Posted
Comments
F-ES Sitecore 12-Oct-15 4:16am    
Your WCF service can't access your web pages. The service method you call will need to have two parameters where you can pass the values of the drop downs. The code in your page that calls the WCF will read the selected values and pass them to the service.

1 solution

Umm, your service can not directly access your webpage.
So, you create one method in WCF service that accepts two parameters & then based on that, write your logic to return something to your webpage.

You can pass the dropdown selected value as parameters to your WCF method.


-KR
 
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