Posts Tagged as ASP.NET

I recently implemented a pager in ASP.NET MVC and thought it would be worth sharing. It uses fluent syntax - a technique I've not seen used much in MVC to solve similar problems so I thought I'd throw it out there! At first glance, MVC has a much mor...

Filed under: ASP.NET C# MVC

The Google +1 button lets visitors to your site recommend and share your content. I've created an ASP.NET server control to encapsulate the JavaScript you need to embed on your page. Using my server control you don't need to keep visiting the Google...

Filed under: ASP.NET C# Google Plus

The Event Broker is an implementation of the Observer pattern. The key benefit of an Event Broker is that it offers a loosely coupled mechanism to broadcast and receive events. This is especially useful in ASP.NET where you want to raise events in on...

Filed under: ASP.NET C# Patterns

In this post, I thought I'd look at a complete server-side and client-side solution for validating credit card numbers using the LUHN algorithm for both ASP.NET Web Forms and MVC. The core code uses some nice LINQ that I have previously blogged about...

Filed under: Algorithms ASP.NET C# JavaScript LINQ MVC Security

I was recently involved in rewriting the homepage for a major airline company. Performance was critical as the site receives many hundred hits every second just on the homepage alone. It required heavy use of the database due to a high level of perso...

Filed under: ASP.NET Performance

PayPal is a cheap and easy solution for taking payments and is quick to implement in ASP.NET MVC. We will look at a simple scenario of taking a user to a PayPal payment page to checkout. There is not much information on the PayPal website about using...

Filed under: ASP.NET MVC PayPal

ASP.NET's page caching and user control fragment caching prevents post-back from working because, during post-back, a cached version of the page may be displayed instead of the form submission being processed. However, all is not lost! I've found a s...

Filed under: ASP.NET Performance

Cross Site Scripting, or XSS for short, is a form of HTML injection exploit where an attacker will attempt to embed malicious JavaScript, Java (Applets) or ActiveX code in HTML tags like <script>, <form>, <applet>, <iframe> and <object>. These HTML t...

Filed under: ASP.NET C# Security

There is not a lot of information on performance tuning ASP.NET 3.5, or any version of ASP.NET for that matter, especially for 64 bit servers, and recently I had the task of making a large scale Sitecore CMS website production ready with a view to ha...

Filed under: 64 bit ASP.NET Performance Sitecore

There is one main limitation with FindControl in ASP.NET: it only looks in the NaminingContainer of the control you are searching within. Here is a better, much improved version of FindControl for ASP.NET written in C# as an extension to the Control...

Filed under: ASP.NET C# LINQ

Valid XHTML 1.0 Strict