Sql Server Error Caused by Web Part
问题 I am using webparts to create a dashboard page. To do that i am dynamically loading the webparts. strZoneNumber = "zone" + intCnt.ToString(); UserControl UC = (UserControl)LoadControl(row["c_widget_path"].ToString());//Loads the usercontrol UC.ID = row["c_widget_webid"].ToString(); UC.Attributes.Add("Title", row["c_widget_webid"].ToString()); //UC.Attributes.Add("title" , "Test"); GenericWebPart ucwebPart = wpmDashBoardManager.CreateWebPart(UC);//creates a webpart wpmDashBoardManager