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



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



Creating Static Content Website in IIS 7

In this example we will configure a website in IIS 7 for serving static content as quickly and efficiently as possible. This website is designed to serve files like CSS, JavaScript, Images and HTML. This configuration will give you a result of 100/100 with Google Page Speed.

More



Imperatively Impersonate a User

In this example we will Imperatively Impersonate a User so that we can run a few lines of code and then undo the Impersonation so that we are running using the standard ASP.NET permissions.

More



Minify HTML for ASP.NET

In this example we will Minify the HTML produced by ASP.NET by using a HttpModule to remove all White spaces from the response stream.

More



Move ViewState to the page bottom

In this example we will move the ViewState from the top of the page to the bottom. This is believed to help search engines read the move important content of the page, rather that have to deal with all the encoded information.

More



How to compress ASP.NET ViewState

In this example I will show you how to compress ASP.NET web page ViewState. The ViewState is used to save page state between requests, if you have a page with a large amount of controls you could end up with a bloated ViewState. We will create an abstract class that can be reused within your application.

More



How to create a file of a certain size

In this example I will show you how to create a file of a fixed size. This can be useful if you require files of fixed sizes for testing purposes

More



Google Website Optimizer Integration

In this example we will create a set of controls to simplify the use of the Google Website Optimizer tool. Google Website Optimizer is a tool that can help you improve the effectiveness of your website and your return on your investment by testing if changes to your website’s content are more effective in getting conversions.

More



Next

Prev