Thursday, March 5, 2009

Ultimate Trouble Shooting Alternate Access mapping guide

Error Show Case 1


  • Contains host file entry
  • Contains IIS Identity
  • Contains invalid or no alternate access mapping in Operations (Central Administration).


Error Show Case 2






  • Contains Host file entry
  • Contains Alternate Access Mapping in Operations (Central Administration)
  • Contains no identity entry in IIS


Error Show Case 3



  • Contains no host file entry
  • Contains no alternate access mapping
  • Contains no identity entry in IIS


Successful alternate access mapping outcome



  • Contains host file entry
  • Contains alternate access mapping
  • Contains identity entry in IIS

SPBasePermissions listing

Specifies the built-in permissions available in Windows SharePoint Services.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx

SharePoint List template IDs

List Template ID List Type

100   Generic (custom) List
101   Document Library
102   Survey
103   Links List
104   Announcements
105   Contacts
106   Events
107   Tasks
108   Discussion Board
109   Picture Library
110   Data Source
111   Site Template Gallery
113   Web Part Gallery
114   List Template Gallery
115   Form Library
119   Wiki Page Library
120   Generic (custom) List in Datasheet view
150   Project Tasks
200   Meeting Series List
201   Meeting Agenda List
202   Meeting Attendees List
204   Meeting Decision List
207   Meeting Objectives List
211   Meeting Things to Bring List
212   Meeting Workspace Pages List
300   Portal Sites List
850   Pages List (Publishing site)
1100  Issue Tracking
2002  Personal document library
2003  Private document library

Changing the New! gif in a custom list

If you are implementing a custom list in a site definition, you can easily update the icon that SharePoint puts next to newly created items in a list. Instead of the New! icon, you can replace it with other gifs.

Go to your schema.xml and locate the following section:



Replace the relative src link with another image. Make sure that you provision your custom gif with your site definition to the /_layouts/1033/images folder when you redeploy your list.

Wednesday, March 4, 2009

Monday, March 2, 2009

Alternative method for attaching javascript event handlers to a text box for IE6 compatibility

Attaching event handlers OnFocus and OnBlur work ok under IE6/IE7, and FireFox if its done this this way:

txtSearchText.Attributes.Add("onfocus","ClearTextBox()"); txtSearchText.Attributes.Add("onblur", "RepopulateTextBox()");

BUT this way does not work under IE6:

control.onfocus = function() { ClearTextBox(); }
control.onblur = function() { RepopulateTextBox(); }