February 26, 2012

Spring.net “around advice” interceptor logging using DefaultAdvisorAutoProxyCreator

By |2012-02-26T21:32:42+00:00February 26th, 2012|Categories: ASP.NET|Tags: , , |

I wanted to be able to wrap all method calls from any of our spring.net created objects for the purpose of some sort of performance logging. This could have been done at least two different ways Using a Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator and specifying a wildcard expression to wrap advice around certain objects that match the expression. (all services only, all [...]

A quick review of nopCommerce, a great ecommerce shopping cart built using MVC

By |2018-06-27T17:47:26+00:00February 12th, 2012|Categories: ASP.NET, MVC|Tags: , , |

  I recently had a client who wanted to setup an online store, they had several hundred products to list, and wanted to have something up as quickly as possible. I had read quite a lot of good reviews about nopCommerce, an open source .NET shopping cart product built with MVC. I decided to give it [...]

December 4, 2011

Request.UrlReferrer is null, what gives?

By |2018-06-27T17:47:25+00:00December 4th, 2011|Categories: ASP.NET|Tags: |

  I was looking for a consistent way to be able to know the url a user was coming from when loading a page. I came across the Request.UrlReferrer property of the page, and thought "hey, this is exactly what I need!", but that wasn't the case. It was working in some instances, and was coming up [...]

November 27, 2011

Testing smtp code locally via smtp4dev with no smtp server setup

By |2018-06-27T17:47:25+00:00November 27th, 2011|Categories: ASP.NET|Tags: , , , |

Just another plug for a very helpful tool that I've been using for testing SMTP code locally. Smtp4dev simulates an SMTP server on your local machine, allowing you to send email via a local SMTP connection in your code when you do not have a SMTP server setup. You can even inspect the messages to ensure [...]

September 18, 2011

Telerik RadListBox onClientTransferred not firing with disabled items selected and transferred, workaround

By |2011-09-18T16:39:39+00:00September 18th, 2011|Categories: ASP.NET, Telerik|Tags: , |

Was running into an issue when selecting disabled items with a telerik radListBox. Normally you would not be able to select disabled items with the radListBox, but there is a known bug that allows you to do so by holding shift and selecting disabled items along with enabled items. This is documented here http://www.telerik.com/community/forums/aspnet-ajax/listbox/able-to-select-disabled-items.aspx. The specific [...]

July 9, 2011

Telerik RadFilter ExpressionPreviewPosition – Failed to load viewstate

By |2011-07-09T17:54:42+00:00July 9th, 2011|Categories: ASP.NET, Telerik|Tags: , |

Just a quick post in case someone else has ran into this issue.  I was trying to set the RadFilter ExpressionPreviewPosition in OnLoad() of the RadFilter, and getting the exception "Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous [...]

June 20, 2011

Find all controls of a type, recursively, and perform an operation on them

By |2011-06-20T22:54:06+00:00June 20th, 2011|Categories: ASP.NET|Tags: , |

Recently I wanted a way to recursively iterate through a control, and its children and perform a certain operation on all controls of a specific type.  I did a quick search on Google for this, but surprisingly wasn't able to come up with much.  I know someone has definitely done this, but I'm going to post [...]

April 6, 2011

What data type to use for representing currency in C# and Sql Server 2005/2008?

By |2011-04-06T22:51:19+00:00April 6th, 2011|Categories: ASP.NET, SQL Server|Tags: , , |

This post will be short and sweet.  What data type should you use to represent currencies in C#? - Decimal If you use double, you will end up with rounding errors on more precise numbers, and if you are writing applications that support multiple currencies, namely currencies that use very large numbers, such as the Indonesia [...]

March 27, 2011

Page cannot be displayed error with IE and Iframe, third party cookie related

By |2018-06-27T17:47:25+00:00March 27th, 2011|Categories: ASP.NET|Tags: , , , |

Recently I came across an issue with IE and a web application that was being displayed within an iframe on another parent page. When I would load the parent page, I would get a "page cannot be displayed error". To make a long story short, my web application needed to set a cookie, and because it [...]

Async File Uploading using Asp.Net

By |2011-03-02T22:49:04+00:00March 2nd, 2011|Categories: ASP.NET|Tags: |

Recently I ran into an issue, that by the looks of Google, is affecting many others too.  I wanted to be able to allow users to select an upload path, using the standard Asp.Net fileUpload control, and maintain that control's path through postbacks, so I could perform some server side validation.  As far as I can [...]

Go to Top