Hi billy_boy;
1. "Unable to cast object of type 'System.Int32' to type 'System.String'."
Make sure that the table mapping are correct.
2. "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. "
This is that the program has not received a response back from the query sent out. Could be that the server has a heavy load or network traffic. You may try to increase the response time out.
3. "Both DataSource and DataSourceID are defined on 'lvPhrases'. Remove one definition."
Use DataSource or DataSourceID but do not use both on the same control. From Microsoft documentation:
Use the DataSourceID property to access the ID property of the data source control that the data listing control should use to retrieve its data source. The data source control referenced by the DataSourceID property can be any control that implements the IDataSource interface. The data source control must exist either in the same naming container as the data listing control that references it, or in a parent control of the data listing control. When you specify a value for this property, the data listing control automatically binds to the specified data source control. You do not need to write code that explicitly calls the DataBind method.
Alternately, you can use the DataSource property to specify the source of values to bind to a data listing control. The data source must be an object that implements the System.Collections.IEnumer
able interface (such as System.Data.DataView, System.Collections.ArrayLi
st, or System.Collections.Hashtab
le) or the IListSource interface to bind to a control derived from the BaseDataList class. When you set the DataSource property, you must manually write the code to perform data binding.
If values are specified for both the DataSource property and the DataSourceID property, ASP.NET is not able to resolve the data source and an System.Web.HttpException exception is thrown.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.basedatalist.datasourceid.aspx
Fernando