DISQUS

SharePoint Magazine: Populating data sources in code

  • Hany · 1 year ago
    how to make query like list1.title=list2.title
  • JamalHosseini · 1 year ago
    Hi
    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
  • JamalHosseini · 1 year ago
    Hi
    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
  • JamalHosseini · 1 year ago
    Hi

    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
  • sweha · 1 year ago
    I have sharepoint portal server 2003 and microsoft outlook 2003. I have my customers fill in a task request form, an internet application, and submit it. I have it where it gets sent to my outlook as a task. Is there a way that I can send it as a task in sharepoint task list in an unassigned task list area and then once I assign task, it should move to the assigned task list and disappear from the unassigned task list. Any help is appreciated
  • mantisory · 3 months ago
    it appears this does not really work well in a sharepoint site per se, because placing it into a content page causes it to fail (or any page with a master page)
    Regards,
    Byron
  • mantisory · 3 months ago
    actually, I found that if you change your code in the page load event to this it works fine:
    ContentPlaceHolder myPH = (ContentPlaceHolder)this.Page.Master.FindControl(placeholderwherecontrolis);
    DataFormWebPart m_dfwp = myPH.FindControl(DataFormWebPartId) as DataFormWebPart;