Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
1266 Points
330 Posts
May 04, 2011 09:07 AM|LINK
bboys DataSet ds = null;
instead of DataSet ds = null; use Dataset ds=new Dataset();
I have created method as follows
[OperationContract] public DataSet GetData() { DataSet ds = new DataSet(); return ds; }
and i called like as follows
ServiceRef.Service1Client cleint = new ServiceRef.Service1Client(); DataSet ds=cleint.GetData();
I didn't get any Error while accessing from client,its working fine.
thanks
ganaparthi
Participant
1266 Points
330 Posts
Re: can i return null object (dataset) from a WCF webservice to the apsx page in .net 3.5 framewo...
May 04, 2011 09:07 AM|LINK
instead of DataSet ds = null; use Dataset ds=new Dataset();
I have created method as follows
[OperationContract] public DataSet GetData() { DataSet ds = new DataSet(); return ds; }and i called like as follows
ServiceRef.Service1Client cleint = new ServiceRef.Service1Client(); DataSet ds=cleint.GetData();I didn't get any Error while accessing from client,its working fine.
thanks
Srinivas Ganaparthi,
'All things are difficult before they are easy'
My Blog