Using ASP.NET Control State
In this example we will create a Server Control and use the Control State to store and retrieve values. It is better practice to use Control State when creating custom control rather than using Page...
View ArticleImperatively Impersonate a User
In this example we will Imperatively Impersonate a User so that we can run code with increased permissions and then undo the Impersonation so that we are running using the standard ASP.NET permissions....
View ArticleCreating 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....
View ArticleUsing ASP.NET AJAX Client Side Callback
In this example we are going to create a Client-side Callback with ASP.NET AJAX by implementing the RaiseCallbackEvent and GetCallbackResult methods of the the ICallbackEventHandler interface. In this...
View ArticleUsing Global Namespace Array Type
In this example we will use the Array Type static extension methods that get added to the base ECMAScript (JavaScript) Array when using the Microsoft AJAX Client Library. To use the Microsoft AJAX...
View ArticleUsing 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. To use the Microsoft AJAX...
View ArticleASP.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...
View ArticleGetting 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. private static IList GetTxtRecords(string hostname) { IList txtRecords = new List();...
View ArticleAccess 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...
View ArticleTips and Tricks on how to improve MVC Application Performance
In this post we will cover a few tips and tricks to improve ASP.NET MVC Application Performance. Run in Release mode Make sure your production application always runs in release mode in the web.config...
View Article