Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
can we use return type datalist on asmx webservics???
Posted
Comments
DamithSL 15-Jun-14 3:06am    
what happen when your return? any exceptions?
DamithSL 15-Jun-14 3:27am    
can you update the question with your service method?

1 solution

WebMethod - as the main building block of any web based service in the VS word, can return any complex type that serializable...
DataList is not serializable, so it can not be a returned by WebMethod.
 
Share this answer
 
Comments
Member 10690757 15-Jun-14 3:18am    
then wat can i use instead of Datalist?
Kornfeld Eliyahu Peter 15-Jun-14 3:56am    
I can not advice you without understanding your case...Please try to improve your question with actual code...

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