How to Validate Data Annotation Attributes in ASP.NET MVC

When the end user enters a data to your site, the form fields must be validated first before it is saved into the database. We often use Validation HTML helpers provided in ASP.NET MVC to perform input validations. You can also use data annotation attributes from System.ComponentModel.DataAnnotations namespace to perform validations at model level.

Data annotation attributes are sets of attributes that reside in System.ComponentModel.DataAnnotations namespace and allows you to validate the property values of a model class. When added, they can perform validations on the server as well on the client side.

This article will discuss the basics of using these attributes in your ASP.NET MVC application.

Read the rest of the post here: http://www.codeguru.com/csharp/.net/validating-data-using-data-annotation-attributes-in-asp.net-mvc.htm

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

How to Create Single Page Applications using ASP.NET and Visual Studio 2012.2

With the use of JavaScript, CSS, and HTML, a Single Page Application becomes more powerful than before. The Single Page Application (SPA) concept uses the core web technologies and standards so it is easily accomplished using ASP.NET. ASP.NET and Web Tools 2012.2 provides SPA template so you don’t need to reinvent the wheel when tackling a project. These templates can be easily access using Visual Studio 2012 but if you don’t have any templates installed, you can still create your own SPA by creating a new MVC 4 Web Application and choosing SPA.

Read the rest of tutorial here: http://www.techrepublic.com/blog/programming-and-development/create-single-page-applications-with-aspnet-and-visual-studio-20122/6970

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

How to Reverse Engineer Your .NET Applications

Reverse engineering is the process of decompiling an application to view its source code. In a managed code like .NET and Java, decompiling provides a more easier approach because all the source code are compiled into Microsoft Intermediate Language (MSIL) unlike when decompiling C or C++ applications. The MSIL is converted into a machine code using the Just-in-Time (JIT) compiler when executed. The MSIL includes metadata that provides a lot of information on the code.

To start a reverse engineer of a .NET application we need to get the DLL or .EXE files of the application that you want to decompile.

Read the rest of the tutorial here: http://www.techrepublic.com/blog/programming-and-development/reverse-engineering-your-net-applications/6834?tag=content;blog-list-river

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

ASP.NET for Mobile

ASP.NET is a great resource for news about ASP.NET, articles, and tutorial. What I don’t like about this site is its not mobile friendly yet. I wish there was a way where we can consume ASP.NET blogs in a more mobile-friendly way so we can read about the latest in ASP.NET even when we are on the go.

This mobile application, solves mostly our problems with consuming ASP.NET articles in our mobile phone. It is a simple application that uses the same concept most apps use, and is powered by jQuery Mobile.

To learn more about this app, read the blog post here: http://beletsky.net/2012/04/aspnet-articles-mobile-application.html

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

OAuth using ASP.NET MVC

OAuth and OpenID is a popular method for logging into various sites without having the need to register to them individually. All you need to do is provide your Google, Facebook, or Twitter account and OAuth will sign you up or log you in automatically.

OAuth is a realization of what once only a dream – the Single Sign on. Instead of having to remember a lot of usernames and password for every website, all is done using your social media account.

In this article, we will explain the benefits of OAuth and what you can do with it using ASP.NET MVC.

 

Read the rest of the post here: http://www.dotnetcurry.com/ShowArticle.aspx?ID=907

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Dynamic Lockscreen Changes for Windows 9 Built Using ASP.NET MVC

When Windows Phone 8 has been released, a few developer API were made available to allow third party applications to change the device’s lock screen image. You’ll need to have ASP.NET MVC3 to make it work on the web frontend and Windows Phone 8 SDK to work with mobile applications. Azure Mobile Services account is also required and the Azure Mobile Services Client Libraries. All these components are available for free. Make sure to meet all the necessary requirements because without Azure Mobile Services SDK, for example, the compilation process will fail.
Read the rest of the tutorial in this post: http://channel9.msdn.com/coding4fun/articles/Dynamic-Lockscreen-Changer-for-Windows-Phone-8-Built-With-ASPNET-MVC-and-Azure-Mobile-Services

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Beginner’s Guide in Creating UI, Business, and Data Layers in Applications – ASP.NET

There are many blog entries and forum posts about the importance of building an application with multiple levels of abstractions. They incorporate principles, and complicated terms that make them look smart but leave beginners clueless about what they are talking about. This article finds a way to help beginners provide the most basic method in creating UI, busines, and data layers in applications using ASP.NET.

This online lecture will teach you the basics of creating a UI, the basic assumptions you should make in every application, and some simple basic rules.

Read the rest of the lecture here: http://www.nullskull.com/articles/aspnet_how_to_create_object_oriented_applications_2.asp

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

How to Profile Your ASP.NET MVC Applications using MiniProfiler

MiniProfiler is a profiling library that monitors the performance of your ASP.NET application. Developed by some members of StackExchange team, it is an application available as a Nuget Packages and it is easy to use and get started with. This article will explain how to use MiniProfiler to profile an ASP.NET application using EF Code First as the Data Access Layer.

Profiling infrastructure is very important because you can easily understand problems, fix it right away, and prevent bottlenecks at runtime. The MiniProfiler created by StackExchange has a lot of things to do with profilinng your ASP.NET MVC with only a few easy steps.

Read the tutorial here: http://www.dotnetcurry.com/ShowArticle.aspx?ID=895

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Modal Input Forms in ASP.NET MVC

User interface provides the best experience of your users as blog posts and articles won’t be interesting without excellent UI. Most websites fall short in providing the best user experience to their users. Designers even fail to meet user expectations simply because they focus more on the appearance of the site more than the other design aspects that the website really deserves a treatment, like for example web forms.

The good news is that you can use modal dialog boxes to beautify forms. It’s not only beautiful but also contributes to the overall performance of your webpage because it reduces requests to your site. This technique relies on Bootstrap and JQuery plugins.

Read the rest of the tutorial here: https://www.simple-talk.com/dotnet/asp.net/modal-input-forms-in-asp.net-mvc/

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

How to Prevent Cross-Site Sniff Attacks in ASP.NET MVC 4

Websites are vulnerable to various types of attacks. The most common type of attack is called Cross Site Scripting or XSS. An XSS is a malicious markup script that enters in the web page that is being viewed by other users. If you do not prevent XSS from happening to your site, the script will be stored in the system and on the rendered pages. Depending on the script, it can cause damage to your website like annoying pop up ads, customer credentials getting stolen, and accessed to stored cookies. That is why it is important for you, as an ASP.NET Developer to prevent these attacks.

This post will describe what is XSS, how it works, and how to prevent it from happening to your site.

Read the rest of the post here: http://www.codeguru.com/csharp/.net/net_asp/preventing-cross-site-scripting-attacks-in-asp.net-mvc-4.htm

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS