SharePoint, PowerShell, .Net and other stuff I spend too much time on...
9/16/2007
SharePoint: Resources for customizing 3.0
9/09/2007
SharePoint 2007 Links
8/22/2007
SharePoint Search Resources
8/09/2007
SharePoint: Adding hyperlinks to document libraries
Sometimes you have external content that you would like to make available from your document library without uploading a file. Examples include documents in other SharePoint sites or libraries, and even links to other web pages including SharePoint pages and external web sites.
Turns out SharePoint already has this built-in, just well hidden. There is a built-in Content Type called "Link to a Document". Just add this to your library and then just click the "New" dropdown and select "Link to a Document"! It will simply ask you for a document name and url. You can supply a URL to anything that starts with "http://", including both SharePoint documents and external web pages. It does not support a link to a network share such as "\\myfileserver\folder1\somedoc.doc".
- Display your library (Example: Shared Documents)
- Click Settings and Library Settings
- Click Advanced Settings
- Check "Allow management of content types" and then OK
- In the Settings page scroll down to Content Types and click "Add from existing site content types"
- Select "Link to a Document", click Add and then Click OK
- Go back to your library and click the New dropdown and select "Link to a Document"
- Enter a display name (Document Name) and the URL (must start with http://) and click OK
- Basic Page
- Web Part Page
- Dublin Core Columns (Do a web or wikipedia.com search for "Dublin Core")
- Picture
You can also add customized folders to the New dropdown. See here. Need to add custom columns / meta data to any of the above? Just create a new Content Type based on one of the above and add it to your library. See here.
.
8/08/2007
SQL Links
8/04/2007
SharePoint: How do to add a column (meta data) to SharePoint folders
Note: The following works for SharePoint 2007, 2010, 2013, 2016 and Office 365. SharePoint 2010 and later and Office 365 users should also take a look at Document Sets:
http://msdn.microsoft.com/en-us/library/ee559339.aspx
http://technet.microsoft.com/en-us/library/ff603637.aspx
"How do I add a column (meta data) to SharePoint folders?"
My first thought is to modify the Content Type named Folder, but it is "sealed". (Microsoft locked the door!) So I created a new Content Type based on Folder, added the custom column, added the content type to the library and magically I found my custom folder type in the New dropdown. Here's the steps:- Go to Site Actions, Site Settings
- Click Site Content Types
- Click Create
- Give the new content type a name such as "Enhanced Folder" or "Product Spec Folder"
- Set the parent content type group as Folder Content Types
- Set the parent content type to Folder
- Add the new content type to a Group. I put it back in the "Folder Content Types" group
- Click OK
- Scroll down to the columns section and click Add from new site column
- Name the column and set all the usual column options
- Repeat for any additional columns (Release Date, etc)
- Click OK
- Go to your document library
- Click Settings and Library Settings, or in 2010 click the Library ribbon tab and then click Library Settings
- Click Advanced and set Allow management of content types to Yes and click OK (this may already selected)
- Scroll down to Content Types and click Add from existing site content types and add your new folder content type
- Go to your document library and click the New dropdown, or the New button in the 2010 Document ribbon, and add your new folder!
- Go to the View dropdown and click Modify this view and add your new folder meta data columns (you will probably want to move them to just after the Name column)
SharePoint: How to search a Wiki
- First display the Wiki as a list:
- Click View All Site Content and then click the wiki or
- Scroll to the bottom of the Quick Launch area (below the Recycle Bin link) and click "View All Pages" or
- Display the wiki as usual and then click the wiki's name in the "crumb trail"
- Select "This List: wiki name" from the search scope dropdown
- Go to your wiki page and copy the URL, up to but not including "home.aspx" (http://maxsp2007/training/MyWiki)
- Go to Site Actions, Site Settings
- In the Site Collection Admin column click Search scopes
- Click New Scope
- Type the name or title to display in the search scope dropdown, optionally add a description
- Check "Search dropdown" and click OK.
- In the line for the new scope click Add Rules
- Click Web Address
- Paste your Wiki URL in the Folder box
- Click OK
- The scope will not be displayed in the search scope dropdown until the next full or incremental search index run.
.
8/02/2007
.Net Links - web resources
Some of the links I have collected for .Net - no particular order or grouping...
Why things were changed between 1.1 and 2.0 (very interesting blog) http://weblogs.asp.net/scottgu/archive/2005/08/21/423201.aspx
New in 3.0 http://download.microsoft.com/download/5/8/6/5868081c-68aa-40de-9a45-a3803d8134b8/csharp_3.0_specification.doc http://msdn2.microsoft.com/en-us/vstudio/aa700830.aspx http://msdn.microsoft.com/data/ref/linq/
.Net history (video) http://channel9.msdn.com/ShowPost.aspx?PostID=44084 http://channel9.msdn.com/ShowPost.aspx?PostID=44940
Dot Net Security Whitepaper: Improving Web Application Security: Threats and Countermeasures http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/ThreatCounter.asp
Spelling checker add-in for Visual Studio 2005 http://weblogs.asp.net/scottgu/archive/2006/04/18/Spell-Checker-Plug_2D00_in-for-VS-2005-for-ASP.NET-and-HTML-Pages.aspx
2.0 Generics overview: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/csharp_generics.asp
IIS Lockdown Tool http://www.microsoft.com/technet/security/tools/locktool.mspx
"Security Smack Down" http://www.devcity.net/PrintArticle.aspx?ArticleID=50
Defend Your Code with Top Ten Security Tips Every Developer Must Know http://msdn.microsoft.com/msdnmag/issues/02/09/SecurityTips/default.aspx
ASP.NET Security Overview http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q306590
Ajax / Atlas article: http://msdn.microsoft.com/msdnmag/issues/06/07/AtlasAtLast/
Want to see what's in the ViewState collection? Go to this link and search for "ViewState decoder" http://pluralsight.com/blogs/fritz/archive/2004/07/01/472.aspx
Other languages for dotnet! (I count nearly 50, some with multiple sources) http://www.dotnetpowered.com/languages.aspx
Web Parts tutorial http://www.ondotnet.com/pub/a/dotnet/2005/05/23/webparts_1.html
Tutorial: Developing a templated control designer in ASP.NET 2.0 http://blogs.infosupport.com/wouterv/archive/2005/09/15/Developing-a-templated-control-designer-in-ASP.NET-2.0-_2800_5-parts_2900_.aspx
How to store the web part catalog in an XML file http://www.carlosag.net/Articles/WebParts/catalogPartSample.aspx Application Blocks, patterns and practices http://msdn.microsoft.com/practices/
2003 -> 2005 issues / solutions... Visual Studio 2005 Web Application Projects (Released May 8, 2006) http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx Update to the Web Project Conversion Wizard The Web Project Conversion Wizard in Visual Studio 2005 has been updated to handle newly discovered conversion issues. http://www.microsoft.com/downloads/details.aspx?familyid=7cecd652-fc04-4ef8-a28a-25c5006677d8&displaylang=en Upgrade from ASP.NET 1.x info http://msdn.microsoft.com/asp.net/reference/migration/upgrade/default.aspx
Memory in .NET - what goes where http://www.yoda.arachsys.com/csharp/memory.html ASP.NET 2.0 Security Practices at a Glance http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/PAGPractices0001.asp Newsgroups: (can be searched at http://groups.google.com) microsoft.public.dotnet microsoft.public.dotnet.academic.* microsoft.public.dotnet.csharp.general microsoft.public.dotnet.datatools microsoft.public.dotnet.distributed_apps microsoft.public.dotnet.faqs microsoft.public.dotnet.framework.* microsoft.public.dotnet.general microsoft.public.dotnet.internationalization microsoft.public.dotnet.jscript.general microsoft.public.dotnet.languages.* microsoft.public.dotnet.myservices microsoft.public.dotnet.samples microsoft.public.dotnet.scripting microsoft.public.dotnet.security microsoft.public.dotnet.vb.general microsoft.public.dotnet.vjsharp microsoft.public.dotnet.vsa microsoft.public.dotnet.xml Google Newsgroup searches list of all MS dotnet groups: http://groups.google.com/groups/dir?q=microsoft.public.dotnet start of a top level search: http://groups.google.com/groups?&as_ugroup=microsoft.public.dotnet.*
General Sites: Microsoft .NET http://www.microsoft.com/net/ DotNetSlackers: ASP.NET News For Lazy Developers http://www.dotnetslackers.com/ DotNetJunkies.com - Tutorials, news, sample code, user contributed code and web services directory http://www.dotnetjunkies.com/ GotDotNet: The Microsoft .NET Framework Community http://www.gotdotnet.com/ ASP.NET http://www.asp.net/ .NET Rocks! is a weekly Internet audio talk show for .NET Developers. http://www.dotnetrocks.com/ MSDN: ASP.NET - ASP and ASP.NET 2.0, as well at Atlas and Visual Web Developer http://msdn.microsoft.com/asp.net/ ASP.NET QuickStart Tutorials http://samples.gotdotnet.com/quickstart/aspplus/ 411 ASP.NET Directory http://www.411asp.net/ ASP.NET.4GuysFromRolla.com http://aspnet.4guysfromrolla.com/ 123aspx.com ASP.NET Resource Directory http://www.123aspx.com/
SQL Injection http://www.spidynamics.com/whitepapers/WhitepaperSQLInjection.pdf http://www.spidynamics.com/whitepapers/Blind_SQLInjection.pdf http://www.imperva.com/application_defense_center/white_papers/blind_sql_server_injection.html and more... http://www.google.com/search?hl=en&q=sql+injection+white+paper