Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » WSS 3.0 » MOSS 2007   (RSS)

HowTo: Create a quizzing application with SharePoint 2007

With SharePoint 2007 "Survey" list template, I recently created a quizzing application. The thing with survey list is that it stack ranks the questions taking into account how many of the respondents favored each options within that question. But for

How do I use SecureString type in SharePoint 2007?

SecureString is the type that's used for passwords in SharePoint 2007. You might find its use when you are automating some "higher level" administration operation (like creating a web application for example). How do you use it is shown below: 1: private

Wildcard Search in SharePoint

Being able to perform wildcard search is probably an area that's missing in out of the box search in SharePoint. Here's a small web part sample you can use to perform wildcard search in MOSS 2007 (and it can be engineered backward to fit into SharePoint

The buzz with "UrlQueryString" in SharePoint navigation

SharePoint's navigation APIs have a property exposed that allows us to set query string properties for a URL. Sadly, but not surprisingly, this only works when root site collection has publishing feature enabled. Reason is simple... One a WSS only OR

FBA and User Display Names in SharePoint 2007

If you have been working with FBA for a while, you might have noticed that the user name displayed in the Welcome control shows the account name of the FBA user. This is because of the field the welcome control is mapped to. As shown here, the welcome

Why are my SharePoint Groups drop-down disabled?

This was an interesting issue.  The problem a customer reported was that when they wanted to add a user to a SharePoint Group, the "Add users to a SharePoint group" drop-down was disabled.  On investigation, it was found the customer

What permissions are behind the permission levels (roles) in SharePoint

Recently, I was involved in a support request where I had to find out what SPBasePermissions are assigned behind permission level in SharePoint using SharePoint OM code. First some basics about permission level and base permissions. If you are in your

Project to customize the small search control in SharePoint 2007

The small search control that is rendered in the default SharePoint pages is a delegate control rendered through master page. You can find it defined in the master page as follows: < asp : ContentPlaceHolder id ="PlaceHolderSearchArea" runat ="server">

"The site is not assigned to an indexer" error in SharePoint custom search

Strangely enough! We'll not see this issue with an OOTB search. It is seen only when we use search APIs or web service and perform a custom search. Apparently, when we use Microsoft.Office.Server.Search, the content database also gets indexed and this

"The security validation for this page is invalid" error when updating objects through SharePoint object model

This error is often encountered when SharePoint OM is used to update site/web/list objects from within a web context. Some thing so basic as the code below could fail: using ( SPSite site = new SPSite ( "http://moss" )) { using ( SPWeb web = site.OpenWeb())

Database Schema compatibility error in FBA

This is an interesting issue I came across recently and it was nice to know things that I thought would be hardly a matter to be considered. Well, the gist of the issue is very simple. When using default providers (AspNetSqlMembershipProvider & AspNetSqlRoleProvider)

Add/Update "sealed" properties in SharePoint lists

There’s always a question about updating properties in a list in SharePoint. Specifically, properties like “Modified By”, “Modified” etc., WSS 3.0 provides greater flexibility for enabling developers to do this with ease. Usually, this scenario would

GetWebTemplate web method does not return & AddList web method does not recognize my custom list templates!

When you use the “GetWebTemplate” web method provided through webs.asmx web service, you’ll notice that the custom list templates you might have created is not available in the collection returned. This is because the OM call that happens behind-the-wires,
Posted by sridhara | 2 Comments
Attachment(s): CustomLists.zip

"Out of Memory" exception - when adding item to a list using SharePoint OM

Here’s the scenario: A tool that’s designed to add log messages from an application to a SharePoint list. The log messages are themselves “strings”, which when put in a text file may vary anywhere between 1kb to 10mb in size. At a single time, this logging

Starting note on Content Editor Web Part

Recently, I worked a tricky and interesting case where a customer wanted to “silently” put a file in user’s computer. My buddy, Sowmyan bet me by blogging about it here . A job superbly done!! Watch out for enabling Initialize and script ActiveX controls
 
Page view tracker