AspAlliance.com - Keyvan Nayyeri http://aspalliance.com/author.aspx?uId=58927 AspAlliance articles by Keyvan Nayyeri How to Implement 2-Step Verification in ASP.NET MVC Nowadays security is more important than ever on the internet, and the majority of security issues on websites are caused by user accounts being compromised. As a good prevention strategy, the use of 2-step or phone verification mechanisms is becoming common on the internet. In this article Keyvan discusses the implementation of a 2-step verification system in ASP.NET MVC by developing a simple prototype. http://aspalliance.com/2073_How_to_Implement_2Step_Verification_in_ASPNET_MVC Keyvan Nayyeri Tue, 16 Aug 2011 00:00:00 GMT The Darkness Behind DateTime.Now DateTime.Now is one of the commonly-used properties in the .NET Framework in the majority of applications designed. Although this property is designed to serve for particular purposes, the lack of understanding and training has driven many .NET developers to use it in wrong circumstances where other options like DateTime.UtcNow property and Stopwatch class should be used and are recommended. In this article we discuss these three options along with the main applications of each, and provide a quantitative comparison between them to show why DateTime.Now is expensive and should not be misused in many cases. http://aspalliance.com/2062_The_Darkness_Behind_DateTimeNow Keyvan Nayyeri Tue, 31 May 2011 00:00:00 GMT Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 4 In the fourth part of this series, Keyvan talks about the unit testing concepts related to the MVC pattern and how Microsoft has adapted these concepts for its ASP.NET MVC framework. He shows these principles and the process that should be followed to unit test an ASP.NET MVC application. http://aspalliance.com/1630_Building_a_Simple_Blog_Engine_with_ASPNET_MVC_and_LINQ__Part_4 Keyvan Nayyeri Wed, 30 Apr 2008 00:00:00 GMT Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 3 In the third part of this series, Keyvan talks about the data model in his simple blogging engine. He shows some concepts related to the LINQ side of the data model to retrieve data for the blogging engine in controllers and pass them to views with the help of screenshots and source code. http://aspalliance.com/1604_Building_a_Simple_Blog_Engine_with_ASPNET_MVC_and_LINQ__Part_3 Keyvan Nayyeri Mon, 03 Mar 2008 00:00:00 GMT Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 2 In the second part of the article series about ASP.NET MVC Framework, Keyvan adds controllers to his blogging engine in order to describe how to use controllers in ASP.NET MVC and discusses some details related to controllers. He first discusses the concept of URL routing patterns and then explores the anatomy of a controller class. Finally, he examines how to implement the controllers in his sample blog application. http://aspalliance.com/1559_Building_a_Simple_Blog_Engine_with_ASPNET_MVC_and_LINQ__Part_2 Keyvan Nayyeri Wed, 30 Jan 2008 00:00:00 GMT Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 1 Microsoft released the first CTP of ASP.NET 3.5 Extensions and it includes ASP.NET MVC Framework as one of the main extensions for ASP.NET 3.5. In the first part of this article series about building a simple blog engine with ASP.NET MVC and LINQ, Keyvan introduces the MVC pattern, ASP.NET MVC Framework, and the fundamentals of a simple blogging engine. http://aspalliance.com/1538_Building_a_Simple_Blog_Engine_with_ASPNET_MVC_and_LINQ__Part_1 Keyvan Nayyeri Mon, 21 Jan 2008 00:00:00 GMT Asynchronous Pattern in Windows Communication Foundation In this article Keyvan shows how to implement an asynchronous pattern in Windows Communication Foundation for services and clients to enable easy execution of long running operations. http://aspalliance.com/1335_Asynchronous_Pattern_in_Windows_Communication_Foundation Keyvan Nayyeri Fri, 13 Jul 2007 00:00:00 GMT Fundamentals of Windows Communication Foundation Like all other technologies, Windows Communication Foundation (WCF) has its own fundamental concepts and definitions. Having a good understanding of these fundamentals can be a key to success in learning this new technology. In this article Keyvan talks about all these fundamentals in detail. http://aspalliance.com/1141_Fundamentals_of_Windows_Communication_Foundation Keyvan Nayyeri Fri, 09 Feb 2007 00:00:00 GMT Start Development with Windows Communication Foundation After writing two articles and introducing Windows Communication Foundation and its fundamentals, Keyvan talks about coding with this new technology in .NET 3.0, its programming model and development process. http://aspalliance.com/1154_Start_Development_with_Windows_Communication_Foundation Keyvan Nayyeri Fri, 09 Feb 2007 00:00:00 GMT Review: Framework Design Guidelines In this article Keyvan reviews Framework Design Guidelines, which was a popular .NET book published in 2005 by Addison-Wesley. Its primary focus is on giving several guidelines and tips to design powerful frameworks or rich libraries using .NET. http://aspalliance.com/1115_Review_Framework_Design_Guidelines Keyvan Nayyeri Thu, 11 Jan 2007 00:00:00 GMT