Kudos to http://trycatchfail.com
Showing posts with label MVC. Show all posts
Showing posts with label MVC. Show all posts
Saturday, June 18, 2011
Catching authorization errors with JQuery when using Forms Authentication in ASP.NET MVC 3
When there's an authentication error (timeout or invalid credentials) in ASP.NET MVC 3, the framework returns the login pages as a result of this. What if you want to catch the error in JQuery and handle it client side. Well, you can't. Unless, of course, you read this article.
Sunday, January 9, 2011
WPF patterns
This is a good article on how to use WPF and MVC. Is this the best approach? Should I be using MVVM? What's really MVVM? I am not sure since I am still learning WPF, but will post about it as soon as I find out!
Friday, October 1, 2010
ASP.NET MVC 2 application doesn't work on IIS 6.0
Nowadays we expect things to just work. I deployed an ASP.NET MVC 2 application on IIS 6.0 and it didn't work at first. I can't remember the exact error, but it was something about the page not being found. After googling the error -and finding a lot of confusing information-, I decided to try http://www.asp.net/. I found the solution on this tutorial.
By the way, what is it with not being able to download ASP.NET MVC 2 from http://www.asp.net/. It's just dumb, being the "official" page to learn ASP.NET MVC, it should have a link to download it.
By the way, what is it with not being able to download ASP.NET MVC 2 from http://www.asp.net/. It's just dumb, being the "official" page to learn ASP.NET MVC, it should have a link to download it.
Monday, September 6, 2010
JavaScript MVC
This article provides a great start to implement the MVC pattern. I would argue, however, that it can be improved because it doesn't match the definition of MVC from Wikipedia.
One of the problems with the article below is that the View knows about the Controller and the Model, when it should only know about the Model. Although there is at least another problem (hint: the controller doesn't know about the View), it is very easy to fix and you get a perfect implementation of JavaScript MVC.
I am doing this with ExtJS, I'll post some code after I get it to work.
One of the problems with the article below is that the View knows about the Controller and the Model, when it should only know about the Model. Although there is at least another problem (hint: the controller doesn't know about the View), it is very easy to fix and you get a perfect implementation of JavaScript MVC.
I am doing this with ExtJS, I'll post some code after I get it to work.
Subscribe to:
Posts (Atom)