Problem consuming webservice, i

Jul 6 2007 9:21 AM

 

I am trying to comsume a webservice which returns data by accepting parameters for method. The webservice has a class which returns data detailed in the class members.


I have made the reference to the webservice and trying to retreive the data in a detailview.

Error is as under:

Exception Details: System.InvalidOperationException: Data source is an invalid type.  It must be either an IListSource, IEnumerable, or IDataSource.

Source Error:


Line 26:           
Line 27:         
Line 28:   DetailsView1.DataSource = bi.GetBooking((TextBox1.Text).ToString(), (TextBox2.Text).ToString());
Line 29:
Line 30:                 DetailsView1.DataBind();
 


Please advice how i could use IListSource, IEnumerable, or IDataSource with code.

Many thanks

 


Answers (5)