How To: Host SharePoint features such as dynamic Web Parts and Web Part Zones in ASPX page

Error We get an error "ListViewWebPart could not be added, list may be hidden." while putting a ListViewWebpart inside a custom ASPX page in _layouts folder.   Resolution / Workaround We found the information in MSDN “Application pages, unlike content pages, cannot host SharePoint features such as dynamic Web Parts and Web Part Zones." <http://msdn2.microsoft.com/en-us/library/aa979604.aspx>…

0

How To: Get workflow description which is more than 255 characters

Question1: Is it possible to get the information from the description field of workflow history list only for the running instance of the workflow? also if the description value is more than 255 characters, it truncates the value so how to get the complete value? Question2: SharePoint history is supposed to be purged every 60…

0

How To: Create user profile in SSP from FBA site

————————————————————————————– Web Service approach ————————————————————————————– You can use UserProfileService.asmx webservice to achieve the solution. There are couple of methods in this webservice to deal with user profiles like create User Profile, modify User Profile, delete User Profile etc… Please follow the following steps to test the sample code. 1.    You don’t have to extend the…

0

How To: SPS 2003: Access the columns from the “manage sites” list of “sites” area

TopologyManager topologyManager = new TopologyManager(); Uri uri = new Uri("<http://terminator:2004>"); PortalSiteCollection sites = topologyManager.PortalSites; PortalContext portalContext = PortalApplication.GetContext(sites[uri]); Guid homeGuid = AreaManager.GetSystemAreaGuid(portalContext, SystemArea.Home); Area homeArea = AreaManager.GetArea(portalContext, homeGuid); AreaCollection subareas = homeArea.Areas; Area keywordArea = subareas["sites"]; SPWeb oweb  = keywordArea.Web; These are the ref., i used for the above code using System; using System.Web; using…

0

How To: A custom workflow(Approval) to send the notification emails with custom message appended at the end

task.createWssTask_TaskProperties1.EmailBody = @"<!DOCTYPE html PUBLIC ‘-//W3C//DTD XHTML 1.0 Transitional//EN’ ‘http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd’> <html xmlns=’http://www.w3.org/1999/xhtml’ xmlns:m=’http://schemas.microsoft.com/office/2004/12/omml’ xmlns:v=’urn:schemas-microsoft-com:vml’ xmlns:o=’urn:schemas-microsoft-com:office:office’> <head> <meta http-equiv=’Content-Type’ content=’text/html; charset=utf-8′ /> <title>Untitled 1</title> <style type=’text/css’> table.MsoNormalTable     {font-size:10.0pt;     font-family:’Times New Roman’,’serif’; } p.MsoNormal     {margin-bottom:.0001pt;     font-size:12.0pt;     font-family:’Times New Roman’,’serif’;         margin-left: 0in;     margin-right: 0in;     margin-top: 0in; } a:link     {color:#003399;…

0

Code snippet : Rollup tasks list from sub-sites to the parent site

string strSite = "http://terminator:2004/sites/t2";             SPSite oSite = new SPSite(strSite);             DataTable data = new DataTable();             bool flag = true;             foreach (SPWeb oWeb in oSite.AllWebs )             {                 SPListCollection lists = oWeb.Lists;                 foreach (SPList list in lists)                 {                     if(String.Compare(list.Title.ToString(), "Tasks") == 0)                     {                         if(list.Items.Count > 0)                        …

0

How to: Add a column in search results page

Add a column in document library(exp. tjcolumn) Add an item in this document library and fill in the column value Go to search settings in SSP Go to content sources Crawl the content Go to metadata properties Create a new metadata property Add mapping(tjprop) to column(it should be like ows_tjcolumn(text)) Crawl the content Go to…

0

Resolution: MOSS: Event handler being called twice on an imported list template

Behavior/Symptoms: I registered an event handler with a (custom) content type and then added this content type to a (custom) list definition. I implemented the list definition as a feature and installed/activated it for a site collection. Then I created a list using this list definition and added some items to it. The content type…

2