Entries categorized 'Tech'
I've used various different methods on refreshing the data in a YUI DataTable. I just came across another that I thought was novel enough to share. Several websites mention using the sendRequest method on the data source. That does refresh the data, but it does not cause a loading message to appear in...
Continue reading...
A few days ago I submitted a contribution to mvccontrib, and it got committed . What I added was two new ActionResults. PermanentRedirectResult and PermanentRedirectToActionResult . I've had to code the same basic thing for several different projects already, I figured it was time to stop repeating myself...
Continue reading...
In this post, I will show how to implement jQuery File Upload in ASP.NET MVC without using any Flash components. Why bother? Why not just use Flash? That was my first thought. So I started down the path of using SWFUpload . It did not take me long to realize that I would run into a well known bug where...
Continue reading...
I am blogging this link so that when I forget (again) how to do it, I can find it more easily.
This very short blog post will show you how to add support for uploading files to an ASP.NET MVC application. Add a controller action Add a controller action that accepts a parameter of type HttpPostedFileBase. In the example below, I save the file to my App_Data folder. I would highly recommend that...
Continue reading...
One fine day, my task was to refactor my classes so they did not have a dependency on log4net. The first thing I did was to create an ILogger interface in my core library, and an Log4NetLogger class in my infrastructure library. Followed by adding a line to my IoC container bootstrapper class. Finally...
Continue reading...
Last weekend, I went to the ALT.NET Seattle Open Spaces event. It was an awesome experience to talk with all my blogging heroes. On Saturday night, they held a programming contest. I won! http://codebetter.com/blogs/aaron.jensen/archive/2009/03/05/the-alt-net-programming-contest.aspx...
Continue reading...
I am blogging this code snippet in order to ask some people at altnetseattle if this is a good implementation or not. I want to know whether or not this is considered a good way of wiring up NHibernate using StructureMap . I am making use of the registry DSL feature, this code would get called somewhere...
Continue reading...
I am working on an ecommerce site as a personal learning project. Rob Conery’s MVC Storefront series of blog posts was my inspiration. However, I am following a different path. I am using NHibernate instead of Linq-To-Sql. I determined that the hosting budget for this little project would be exceeded...
Continue reading...
LOL for the funny post title. Derik wrote a great post with a great list of tips to live by: Keep your Code Behind empty Keep your Views simple Keep your Controllers light Keep your Model fat (domain model that is)...
Continue reading...