Author: beetle54 | Posted on: 6/5/2008 7:26:19 AM | Views : 350

Hey everyone, I'm running into an issue with else statement of the code block. I'm getting an error saying its unable to cast object of System.Collections.Generic.List[System.Object] to type System.Data.DataTable. I'm using this code inside of a sharepoint page, but if I add the same code to like regular .NET page, then it works fine.
Can anyone help?

Thanks,1 private DataTable dtLangLst;
2 protected void Page_Load(object sender, EventArgs e)
3 {
4
5
6 if (!IsPostBack)
7 {
8
9
10 dtLangLst = new DataTable("LanguageListTable");
Go to the complete details ...