Posted in Code, Development, tagged .NET, C# on August 17, 2009 | Leave a Comment »
Calling the GetResponse() method on the HttpWebRequest class yields some interesting results. It determines that a status code of anything else but 200 (OK) is an exceptional case and throws a WebException exception.
The following code demonstrates how to return the status code even if the URL in the request is not OK.
HttpStatusCode httpStatusCode;
HttpWebRequest httpWebRequest = [...]
Read Full Post »
Posted in Avanade, Code, Development, Microsoft, Technology, tagged Avanade, Microsoft, MOSS, MSDN, patterns & practices, SharePoint, SharePoint guidance, SPG on November 6, 2008 | Leave a Comment »
Microsoft patterns & practices SharePoint Guidance has been released to MSDN!
http://www.microsoft.com/spg
Here are a few of the topics you will find inside:
Architectural decisions about patterns, feature factoring, and packaging
Design tradeoffs for decisions many developers encounter, such as whether to use SharePoint lists or a database to store information
Implementation examples that are demonstrated in the Training Management [...]
Read Full Post »
Recently, I have been doing a lot of ASP.NET development inside of SharePoint. Once area that I have found to be quite tricky, although not SharePoint-specific, is dynamic ASP.NET controls. In particular, managing postbacks when you have dynamic ASP.NET controls.
Here is a link to the source code for a Visual Studio 2008 solution, which demonstrates [...]
Read Full Post »
The second release of SharePoint Guidance from the Microsoft Patterns & Practices SharePoint Guidance team is now published on Codeplex at http://www.codeplex.com/spg.
Updates included in this release:
Refactor code to leverage MVP pattern where applicable.
Refactor SPList-related SharePoint code with the Repository Pattern.
Unit tests for manager and presenter classes using TypeMock.
And much more…
Disclaimer: This will evolve (and change) significantly. At [...]
Read Full Post »
The first release of SharePoint Guidance from the Microsoft Patterns & Practices SharePoint Guidance team is now published on Codeplex at http://www.codeplex.com/spg.
Disclaimer: This will evolve (and change) significantly. At this stage the RI provides a basic set of WSS features with accompanying guidance. This is not a CTP or a BETA.
Stay tuned for new releases about every [...]
Read Full Post »
The addition of SharePoint sequential and state machine workflow project templates to Visual Studio 2008 did wonders for SharePoint workflow developers. Specifying SharePoint Debug Settings that allow you to do a “right-click Deploy” that GACs the DLL, installs and activates a workflow on a SharePoint instance, and associates it with a SharePoint list on that instance [...]
Read Full Post »
Posted in Avanade, Code, Development, Microsoft, Technology, tagged Avanade, Microsoft, SQL, SQL Server, T-SQL on April 5, 2008 | Leave a Comment »
The other day out at Microsoft I ran into some interesting behavior in SQL Server regarding the difference between running a query in a table-valued function versus running it in a stored procedure.
This particular query I was trying to run selects columns from an existing view that is part a database of the Microsoft product [...]
Read Full Post »