Category: MOSS 2007
-
URL Encoded Characters
backspace %08 tab %09 linefeed %0A creturn %0D space %20 ! %21 ” %22 # %23 $ %24 % %25 & %26 ‘ %27 ( %28 ) %29 * %2A + %2B , %2C – %2D . %2E / %2F 0 %30 1 %31 2 %32 3 %33 4 %34 5 %35 6 %36 7…
-
Developer productivity–script to deploy an assembly quickly to Global Assembly Cache (GAC)
Very often we want to deploy the assembly to GAC and test our work, without having to follow a quick deployment process. here is a script which does the assembly deployment (uninstall the old one and install a new version). $ProgamFiles_x86 = "$env:ProgramFiles (x86)" #configure GacUtil environment set-alias gacutil "$ProgamFiles_x86\Microsoft SDKs\Windows\v7.0A\bin\GacUtil.exe" # un-install the old…
-
CAML Query with more than two conditions
<View> <Query> <Where> <And> <And> <Eq> <FieldRef Name=’Brand’ /> <Value Type=’Lookup’>” + brand + “</Value> </Eq> <Eq>” <FieldRef Name=’SiteType’ /> <Value Type=’Lookup’>” + site + “</Value> </Eq> </And> <Eq>” <FieldRef Name=’State’ /> <Value Type=’Lookup’>” + changedState + “</Value> </Eq> </And> </Where> </Query> <ViewFields> <FieldRef Name=’Title’/> <FieldRef Name=’ID’/> </ViewFields> </View> When you want to use more…
-
Displaying the Document Type Icon in a DVWP in SharePoint
<img alt="Type" src="/_layouts/images/{ddwrt:MapToIcon(”, ddwrt:GetFileExtension(string(@FileLeafRef)))}"/>
-
Retrieving Latest Tweet for a Given Twitter Account
In the past I had the requirement of displaying latest tweet for a given twitter account (e.g. corporate account) in home page of the portal sites, here is a sample approach that you could use when a requirement like this comes in. Step -1: Page which hosts the web-part or user control would have to…