Get XML Sitemap Urls using XPath and C#

In this example we will get the all the Urls from an XML Sitemap using XPath. First you need to load the sitemap xml file using an XmlTextReader by passing in the Url location of the sitemap, then use the XmlReader create an XPathDocument, which creates an XPathNavigator.

More



Shrink MS SQL Server Databases

In this example we will shrink the size of a Microsoft SQL Database. We do this by using the command DBCC SHRINKFILE. To find out the size of a database use the stored procedure sp_spaceused

More



Get MS SQL Database Table Sizes

In this example we will get the sizes of each table within an Microsoft SQL database. We do this by creating a temporary table and then running the stored procedure sp_MSforeachtable to call the stored procedure sp_spaceused, insert the output into the temporary table and then select the results.

More



Access Secure Feed with SyndicationFeed

In this example we are going to access a secure RSS feed using SyndicationFeed. This is done by setting the NetworkCredentials in the XmlUrlResolver, and then setting the XmlUrlResolver in the XmlReaderSettings and finally passing the XmlReaderSettings into the XmlReader.Create() method.

More



Getting DNS TXT Record using C#

In this example we will get the DNS TXT Record for a given hostname using C# to run nslookup at the command line.

More



Mocking a void function with Rhino Mocks

In this small example we will use Rhino Mocks to mock a void function by either using a delegate or by using lambda when using the Expect.Call method.

More



Google Data API AuthSub Authentication

In this example we will use AuthSub to authenticate to a Google service. The Google Data API provides helper methods to use AuthSub. Using AuthSub allows web applications to get a authentication token without ever handling the persons username or password.

More



ASP.NET Production Deployment Config

In this example we will look at how to use the deployment configuration element on production servers hosting ASP.NET web applications to automatically configure trace, custom errors and compilation settings.

More



Free Windows 7 Screen Capture Software

Windows 7 came with two handy tools the first is a tool for doing screen capture to images and the second is a tool which records a video of your actions and text notes.

More



Using Global Namespace Error Type

In this example we will use the Error Type static extension methods that get added to the base ECMAScript (JavaScript) Error type when using the Microsoft AJAX Client Library.

More



Next

Prev