Welcome to MSDN Blogs Sign in | Join | Help

June 2009 - Posts

How Page Parsing functionality in SharePoint (SPPageParseFilter) works with the constructor of a webpart

    About a month ago, I was working on case which from code point of view was damn simple; just a HelloWorld Webpart. But things are not so easy if they appears to be. The issue was running one single line of code in a webpart constructor;

How to create list using custom list template using SharePoint object model

Requirement: I have a custom list template uploaded to the List template gallery of the site How can I create a new list whose template is custom list template using SharePoint object model Sample Code: Decription: GetCustomListTemplates(...) method of

How to return 301/200 for selective 404 HTTP status or in other words say URL-rewriting

About a month ago, I came across an interesting request from my customer, who wanted to have render 301/200 for specific 404 pages. May be few of us are aware about URL re-writing & designing of HTTP modules; but interesting point to share here difference

How to customize the table styles in content editor webpart

Requirement: How to customize the table styles in content editor webpart Attachment: The attachment contains Sample_Files zip which in turn contains 2 files for reference: sample.master file CustomHtmlEditorTableFormats.css Steps to REPRO the OOB functionality:

How to show file/folder icons depending on the type in Content Query Webpart

Requirement: How to show file/folder icons depending on the type in Content Query Webpart POINTS to Remember: NOTE: In any other Site except of Publishing Type, activate the following two features in your site, to have Content Query Webpart In Site Collection

How to modify a DateTime value of AfterProperties in ItemUpdating/ ItemAdding Events in SharePoint

Issue Description: When you change the value of the DateTime column of Custom List in SharePoint's SPItemReceiver AfterProperties/BeforeProperties you need to set it to a specific DateTimeFormat string or else it throws the Error Error "Invalid date/time

The security validation for this page is incorrect. Click Back in your Web browser, refresh the page and retry the operation

Issue Description: A custom webpart which on filling the info path form; creates a folder and a file inside the folder, in the SharePoint Document Library. When we fill the Info Path form and submit the request ; the folder and the file is created inside

The maximum limit for the length of the QueryText property of FullTextSqlQuery is 4096 characters.

Requirement: I was working on case, where Customer's business requirement was to have the length of the QueryText property of FullTextSqlQuery to be UNLIMITED . Troubleshooting: Moment the code touches the limit of about 4093 it throws the error Error:
 
Page view tracker