You’ve probably see on the wild on websites such as StackOverflow, but if you don’t know what it is, it is a single sign-on mechanism that allows user of your website to use his existing profile on an provider, such as Gmail, Yahoo, Wordpress, etc. so by providing this service on your website, you allow the user to login without gooing through all the hoops of creating and validating an account which is usable on a single website only. Continue reading

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. Continue reading

One of the great things about ASP.NET WebForms was that it was very easy to create 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? Continue reading

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. Continue reading

ASP.NET MVC has great ajax integration with no doubt. Simply by using ajax forms you can use partial page rendering and there are also controller callbacks. One thing that will break if you switch to Ajax / JsonResult is the built-in Validation result (ModelErrors) rendering of the MVC engine. Continue reading

With the power of an IoC engine, you can inject your repositories, services, etc. when building applications using ASP.NET MVC framework. Since one of the best IoC engines out there IMHO is Castle Windsor using it has become natural more than ever, but as soon as I did, strange problems occurred when testing very simple scenarios. Continue reading

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. Continue reading

With total control over html rendering in ASP.NET MVC there are a lot of things you can do, and this actually is correct the other way around, meaning you have to do a lot of things yourself: No fancy ASP.NET Custom Controls. It somehow reminds me of the old days, when you had to do everything to display a list of data. Back then, everything seemed manual. Continue reading

I’m preparing my website, which benefits NHibernate and ASP.NET MVC so I finally got a chance to actually do something with this nice pair. Since the pattern of SessionPerRequest and TransactionPerRequest is useful, I intended to automagically create a new session upon activating my Controller’s action, where necessary, since this cross-cutting of concerns will make your session management code separate from your controller’s code and you no longer need to worry about it. Continue reading

  • page 1 of 1
Author's picture

Hadi Eskandari

Developer, amateur photographer, coffee snob, husband and father.

Sydney