Monday, April 2, 2012

ASP.net MVC generic client and server side validation

In ASP.net Webform has CustomValidator which can call any javascript function for validation and which make our task is easy in terms of validation.
Follwoing link show how to do it in MVC
http://www.dotnetstep.in/asp-net-mvc-generic-client-and-server-side-validation

Friday, March 30, 2012

Securing your ASP.NET MVC 4 App and the new AllowAnonymous Attribute

You cannot use routing or web.config files to secure your MVC application. The only supported way to secure your MVC application is to apply the Authorize attribute to each controller and use the new  AllowAnonymous attribute on the login and register actions.

http://blogs.msdn.com/b/rickandy/archive/2012/03/23/securing-your-asp-net-mvc-4-app-and-the-new-allowanonymous-attribute.aspx

Thursday, March 29, 2012

How to solve "The specified DSN contains an architecture mismatch between the Driver and Application"?

This error happen on  Classic asp on IIS 7 with window 7 64 bit for MS Access database.

Change the "Advanced Settings" on your Application Pool to "Enable 32-bit applications" = True


Reference:
http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/02bbfb17-d892-49a3-b1f6-75c2533a18a1

How to set up ODBC system DSN on Windows 7?

in command line run:
C:\Windows\SysWOW64\odbcad32.exe

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

How to run & debug classic ASP in Visual Studio 2010 with IIS 7 on Windows 7

http://www.falconwebtech.com/post/2010/12/28/Debugging-Classic-ASP-in-IIS7-and-VS2010.aspx
Windows Features