Last post Nov 15, 2013 01:30 AM by aspkermit
Nov 14, 2013 08:09 PM|aspkermit|LINK
I converted this from VB code and understand that the "Dim" statement for ob was converted to "object":
public void load_lstClubTemplate()
object ob = GetClubList();
ClubCodes = ob;
lstClubsSpecific.DataSource = ClubCodes;
lstClubsSpecific.DataTextField = ClubCodes.Columns.ToString();
lstClubsSpecific.DataValueField = ClubCodes.Columns.ToString();
The error I am getting (on the bold) text above is:
Cannot implicitly convert type 'object' to 'System.Data.DataTable'. An explicit conversion exists (are you missing a cast?)
After some research and scanning through various posts I've yet to find a definitive answer. Any help on this would be greatly appreciated.
Nov 14, 2013 11:12 PM|MetalAsp.Net|LINK
What is the return type of GetClubList?
Nov 14, 2013 11:38 PM|oned_gk|LINK
Nov 15, 2013 01:30 AM|aspkermit|LINK