ASPNETMVC Posts



1-5 of 8

Anatomy of an ASP.NET MVC Control (Tuesday, September 08, 2009)

One of the great things about ASP.NET WebForms was that it wasy very easy to creat reuseable custom controls and components, but with appearance of ASP.NET MVC and lots of developers moving towards it, which is a good thing, what happens to component oriented development? Is is possible to create custom controls in MVC? Can we port our existing controls to MVC? ASP.NET MVC while may not be as good as WebForms when it comes to drag-and-drop style of using components, but it is fairly easy to use and to create custom controls in MVC! Let's see how. 
Filed under | 0 comments »



File Download with ASP.NET MVC (Tuesday, June 23, 2009)

One of the things that might be less obvious when doing applications with ASP.NET MVC, is the ability to download files without exposing your files directly and possibly applying other mechanisms such as authentication or registering emails before allowing someone download your files. 
Filed under | 0 comments »



ASP.NET MVC Validation with Ajax and Json (Sunday, May 03, 2009)

When using ajax forms in ASP.NET MVC the built-in Validation result (ModelErrors) won't work because of a simple fact: The built-in validation will take place when the page is being rendered on the server. When you use ajax and callbacks page will not re-render on the server-side, hence validation can not mark fields with error and add validation information to the already rendered page. 


NHibernate Automatic Validation (Tuesday, April 28, 2009)

NHibernate is for sure one of the prodigy childs of the .NET open-source movement, yet there are some other great libraries and frameworks. One of them is NHibernate Validator which belongs to NHibernate Contrib project. What it does is to validate your domain entities that supposedly are being persisted using NHibernate, but it provides so much flexibility that you can validate almost every POCO class using attributes. 


Dynamically Generated Images with ASP.NET MVC (Sunday, April 26, 2009)

For a site I'm working on using ASP.NET MVC, I intended to place a Date badge beside the blog and news posts I'm writing. Since in ASP.NET MVC there's no notion of custom controls (well, at least not like in WebForms) you'll have to do this manually, but as it turned out it was pretty easy to do.