-
Website
http://SharePointMagazine.net/ -
Original page
http://sharepointmagazine.net/technical/development/populating-data-sources-in-code -
Subscribe
All Comments -
Community
-
Top Commenters
-
djenkinsenergy
4 comments · 1 points
-
yeschandana
3 comments · 1 points
-
Sriram
2 comments · 1 points
-
ggalipeau
32 comments · 1 points
-
Grammy Leung
2 comments · 1 points
-
-
Popular Threads
I'm SharePoint Developer. Thanks alots of your post. I needed a way to populate the sub site's task list data in dataview that find your post. I copy the .dll in gac and added in safe control and register in .aspx page so put dataview ID in the tag , but when I want run the page saw this error....
Object reference not set to an instance of an object
[NullReferenceException: Object reference not set to an instance of an object.]
DynamicAggregateDataSource.DynamicAggregateDataSource.OnLoad(EventArgs e) +106
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
Thanks
Jamal From SPS Persia Corporation
I'm SharePoint Developer. Thanks alots of your post. I needed a way to populate the sub site's task list data in dataview that find your post. I copy the .dll in gac and added in safe control and register in .aspx page so put dataview ID in the tag , but when I want run the page saw this error....
Object reference not set to an instance of an object
[NullReferenceException: Object reference not set to an instance of an object.]
DynamicAggregateDataSource.DynamicAggregateDataSource.OnLoad(EventArgs e) +106
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
Thanks
Jamal From SPS Persia Corporation
I fixed that prblem and now it it is work but when I attached master page to page , get the following error...
[NullReferenceException: Object reference not set to an instance of an object.]
DynamicAggregateDataSource.DynamicAggregateDataSource.OnLoad(EventArgs e) +106
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
Please help me
Thanks
Jamal
Regards,
Byron
ContentPlaceHolder myPH = (ContentPlaceHolder)this.Page.Master.FindControl(placeholderwherecontrolis);
DataFormWebPart m_dfwp = myPH.FindControl(DataFormWebPartId) as DataFormWebPart;