ASPNETMVC Posts



1-5 of 9

MVC and NHibernate problem with IIS 7 (Saturday, May 15, 2010)

In the process of upgrading my IIS 6 to IIS 7, my website was down for almost a whole day. The problem, at first, was that only front page of the site worked all other pages returned a status 404 due to the fact that all routing was stopped working. The problem which was fixed by my hosting provider, but after that, the whole web site stopped working.

 


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.