mo.notono.us

Saturday, June 30, 2007

Links for 2007-06-28 [del.icio.us]

Link - Fri, 29 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Links for 2007-06-29 [del.icio.us]

Link - Sat, 30 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Thursday, June 28, 2007

Links for 2007-06-27 [del.icio.us]

Link - Thu, 28 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Wednesday, June 27, 2007

Links for 2007-06-26 [del.icio.us]

Link - Wed, 27 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Tuesday, June 26, 2007

Generic Batch File to GAC Assembly DLLs and PDBs

::----------------------------------------------------------------------------
:: GACs assemblies located in the Assemblies folder - these have been stuck 
:: there by the following post-build event script on each individual project:
::	copy "$(TargetPath)" "$(SolutionDir)\Assemblies\$(ConfigurationName)\"
::	copy $(TargetDir)$(TargetName).pdb "$(SolutionDir)\Assemblies\$(ConfigurationName)
::----------------------------------------------------------------------------
@ECHO OFF

:: Temporarily navigate to the Assemblies folder
PUSHD C:\Projects\YOURPROJECT\Assemblies\Debug

:: Call the GacAssembly subroutine once for each assembly
CALL :GacAssembly YOURPROJECT.BusinessLogic
CALL :GacAssembly YOURPROJECT.DataAccess
CALL :GacAssembly YOURPROJECT.Interfaces
CALL :GacAssembly YOURPROJECT.ServiceImplementation


ECHO Recycle the "YOURAPPPOOLNAME IIS Application Pool
%windir%\system32\cscript.exe c:\windows\system32\iisapp.vbs /a YOURAPPPOOLNAME /r

POPD
PAUSE
GOTO:EOF

::----------------------------------------------------------------------------
:GacAssembly
ECHO -------------------------------------------------------------------------
ECHO GACing the %1 assembly and its PDB file
ECHO -------------------------------------------------------------------------
ECHO.
@"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil" /u %1
@"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil" /i %1.dll
copy %1.pdb "C:\WINDOWS\assembly\GAC_MSIL\%1\1.0.0.0__YOURPUBLICKEY\"
ECHO.
GOTO:EOF

Labels: ,

Monday, June 25, 2007

VS2005: Where is my Code Snippets Manager?

It appears that the Code Snippets manager in VS 2005 may or may not be hidden from view.  Normally it should be located under the Tools menu.  If you can't find it there, simply add it by selecting Customize from the Tools menu, then adding it as you would any other missing command.  In the customize dialog it is located (as it should) under the Tools category. 

Labels: ,

Saturday, June 23, 2007

Links for 2007-06-22 [del.icio.us]

Link - Sat, 23 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Friday, June 22, 2007

MOSS: Creating a Custom View Page

When you use the schema.xml to define a View on a List, each View must have a unique value for the Url attribute.  Typically this is in the format Url="/Forms/MyCustomView.aspx".

If you need to add special content or logic to your custom view page, you can simply

  1. Copy C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\Pages\viewpage.aspx into the same folder where you have your schema.xml file, and
  2. Rename it MyCustomView.aspx.
  3. In your List schema.xml file, in the View tag for your custom view, remove the SetupPath attribute.  This attribute would normally hijack the URL and point it to the Pages\viewpage.aspx
  4. Modify MyCustomView.aspx as needed
  5. Redeploy (as a feature or part of a solution - if the latter, don't forget to add MyCustomView.aspx to your solution's ddf file)

Labels: , ,

VS 2008 JavaScript Intellisense

Scott Guthrie has another great post on VS 2008, this time on JavaScript Intellisense:

Topics he discusses are:

  • JavaScript Type Inference
  • Intellisense for External JavaScript Libraries
  • Adding Intellisense Hints to JavaScript
  • Intellisense within External JavaScript files
  • Calling Web Services using ASP.NET AJAX
  • Creating Re-Usable ASP.NET AJAX Behaviors, Controls and Libraries

Read it all at VS 2008 JavaScript Intellisense

Technorati tags: ,

Labels: , , ,

Links for 2007-06-21 [del.icio.us]

Link - Fri, 22 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Thursday, June 21, 2007

Links for 2007-06-20 [del.icio.us]

Link - Thu, 21 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Wednesday, June 20, 2007

7 Reasons For ASP.NET 2.0 Developers to Use VS 2008

VS 2008 can target both the 2.0 and the 3.0 (as well as the new 3.5) versions of .NET. But if you're not using 3.5, why would you want to use VS 2008?

Direct from the horse's Scott Guthrie's mouth:

  1. JavaScript intellisense
  2. Much richer JavaScript debugging
  3. Nested ASP.NET master page support at design-time
  4. Rich CSS editing and layout support within the WYSIWYG designer
  5. Split-view designer support for having both source and design views open on a page at the same time
  6. A much faster ASP.NET page designer - with dramatic perf improvements in view-switches between source/design mode
  7. Automated .SQL script generation and hosting deployment support for databases on remote servers

I for one am looking forward to it.

Technorati tags:

Labels: , ,

Tuesday, June 19, 2007

Links for 2007-06-18 [del.icio.us]

Link - Tue, 19 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Wednesday, June 13, 2007

Links for 2007-06-12 [del.icio.us]

Link - Wed, 13 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Tuesday, June 12, 2007

Links for 2007-06-11 [del.icio.us]

Link - Tue, 12 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Monday, June 11, 2007

Links for 2007-06-10 [del.icio.us]

Link - Mon, 11 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Sunday, June 10, 2007

Links for 2007-06-09 [del.icio.us]

Link - Sun, 10 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Friday, June 08, 2007

What the Hell is That in My XmlDocument Tag?

So using the SharePoint Solution generator, if you attempt to reverse engineer a list containing a content type, you may see something strange in the XMLDocuments section (scroll right):

<XmlDocuments>
  <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
    PEZvcm1UZW1wbGF0ZXMgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vc2hhcmVwb2ludC92My9jb250ZW50dHlwZS9mb3JtcyI+PERpc3BsYXk+RG9jdW1lbnRMaWJyYXJ5Rm9ybTwvRGlzcGxheT48RWRpdD5Eb2N1bWVudExpYnJhcnlGb3JtPC9FZGl0PjxOZXc+RG9jdW1lbnRMaWJyYXJ5Rm9ybTwvTmV3PjwvRm9ybVRlbXBsYXRlcz4=
  </XmlDocument>
</XmlDocuments>

 

Turns out that this is just the Base64 encoded version of the more common

<FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
  <Display>DocumentLibraryForm</Display>
  <Edit>DocumentLibraryForm</Edit>
  <New>DocumentLibraryForm</New>
</FormTemplates>

Labels: ,

SharePointBlogs.com - Come Back!

As my two daily vistors may have figured out already, I have been doing some SharePoint work lately.  MOSS is a beast of an application; learning how to manipulate it is not a small task.  So to help with the process, I created SharePointSearch.info a while back; it's a Google CES that indexes SharePoint related blogs and sites.  One prominent SharePoint blog site, SharePointBlogs.com has recently gone dark, reportedly from hardware failures.

All I can say is, thank God for the Google Cache, cause practically every search I do on SharePointSearch.info points to SharePointBlogs.com.  Here's hoping they get back up soon...

Labels: ,

Links for 2007-06-07 [del.icio.us]

Link - Fri, 08 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Thursday, June 07, 2007

Opening a Windows Help File Page in Firefox with IE Tab

To open a help file page (the url of which you can find by right-clicking the page and selecting properties) in Firefox, add the following rule to your IE Tab options:

/^mk:@MSITStore.*/

This should then open the page in an IE Tab within Firefox.

The reason you might want to do this is that you can then add local help file pages to your favorite online bookmark manager.

Technorati tags: , , ,

Labels:

Links for 2007-06-06 [del.icio.us]

Link - Thu, 07 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Wednesday, June 06, 2007

Opening an XPS file In Firefox with IE Tab

Microsoft's new XPS file format doesn't play too nicely with Firefox, in my experience.  If Firefox is your default browser, trying to open an xps document throws the browser into an infinite loop of dialog boxes and new tabs, not much fun.

You can fix this if you have the IE Tab extension for Firefox, but it won't work automatically, you have to make a slight change to the default configuration.

Open the IE Tab Options, and edit the first filter that was placed there by default:

Change

/^file:\/\/\/.*\.(mht|mhtml)$/ 
to
/^file:\/\/\/.*\.(mht|mhtml|xps)$/

XPS files should now open properly in an IE tab within Firefox.

Technorati tags: , , ,

Labels:

Links for 2007-06-05 [del.icio.us]

Link - Wed, 06 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Tuesday, June 05, 2007

Links for 2007-06-04 [del.icio.us]

Link - Tue, 05 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Saturday, June 02, 2007

Links for 2007-06-01 [del.icio.us]

Link - Sat, 02 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels:

Friday, June 01, 2007

Links for 2007-05-31 [del.icio.us]

Link - Fri, 01 Jun 2007 01:00:00 GMT - Feed (1 subs)

Sent using Rmail R|mail.

Labels: