How to Build a Tweeter Reader using AngularJS

AngularJS is a client-side MVC framework in JavaScript. It was created by a group of developers in Google when they realized that their project became to unstable and needed cleanup. The cleanup later resulted to what we now know as AngularJS.

AngularJS is so popular because it focuses on the testability by having the principles of dependency injection and inversion built into the framework. AngularJS is very popular to the community because it offers a lot of features.

This article will explain how to learn AngularJS through using basic data binding and retrieving data using AJAX.

 

Read the rest of the post in this blog: http://www.devcurry.com/2013/06/hello-angularjs-building-tweet-reader.html#.UfrlG4159mg

Share and Enjoy

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

ASP.NET MVC and MVC Pattern – The Basics

Although cutting edge framework enhancement works well, we’ll step back tand revisit MVC, where do we start, and how can we understand the working ASP.NET MVC.

MVC is a pattern attributed by Tygve Reenskaug while he was working at XEROX Palo Alto Research Center. It was originally referred to s the Thing-Model-View-Controller. Its aim was to solve the problem of users controlling large and complex sdata sets.

The ASP.NET MVC Framework helps developers build application that stick to the MVC Pattern. It started with a goal enabling and providing customers with tools to enhance developer ease of use and functionality.

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

Share and Enjoy

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

Async Actions – ASP.NET MVC 4

The .NET Framework has introduced a new await/async programming model. A traditional ASP.NET MVC control is asynchronous by default. Which means that ASP.NET Thread Pool is blocked until another action is completed. However, calling an asynchronous controller action will not block the thread in the thread pool.

Asynchronous actions works best if your method is I/O, long-running, parallelizable and network bound. To start, create a new ASP.NET MVC 4 C# Internet App in Visual Studio 2012, create a class names DAL, and use Entity Framework 6.

Creating an asynchronous controller is not difficult. The difficult part is how you are able to make a supporting dataabase or network calls asynchronous.

Read the rest of the tutorial in this post: http://visualstudiomagazine.com/articles/2013/07/23/async-actions-in-aspnet-mvc-4.aspx

Share and Enjoy

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

ASP.NET Web API Cross Origin Resource Sharing Support

WebAPI 2.0 offers built in support for Cross Origin Resource Sharing. It is a way to build services over HTTP; thus, makes it available to a wider audience of its clients that require HTTP implementation.

However, there is a caveat in using AJAX request to HTTP services that can only be made from URLs of the same origin. Web API 2.0 and ASP.NET MVC have moved to .NET Framework 4.5 which means you cannot try it out unless targeted for 4.5

In this post, we will enable and use Cross Origin Resource Sharing in Web API 2.0.

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

Share and Enjoy

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

Master Pages in ASP.NET

When web designers create a layout of the website, they break down layouts into distinct regions. When building an ASP.NET application, you’ll use a header and footer user control. The user control will usually contain an <html> element with content at the bottom of the page, the site map, and a closing </html> with related tags. This will work well if the layout is divided into a top HTML and bottom HTML portion. But what if this is not the case?

In this article, we’ll discuss how Master Pages work in ASP.NET.

 

Read the rest of the story here: http://aspnet.4guysfromrolla.com/articles/010505-1.aspx

Share and Enjoy

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

Four Ways to Detect a Page Load in ASP.NET

Sometimes it is important for your website to detect a page load so you can configure a page load event for your asp.net application. This is useful for If you want to show to your users a welcome alert message when a user visits a particular page, the easiest method for that is to detect the page load event to prompt the user.

This article will showcase the four ways on how to detect a page load in ASP.NET. In summary, these are:

  1. using window.onload property
  2. detecting onLoad() event of the <body> tag
  3. using a JQuery function
  4. Using a C# pageLoad() event

Read the rest of the article here: http://www.dotnetfunda.com/articles/article2377-4-ways-to-detect-page-load-in-aspnet.aspx

Share and Enjoy

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

How to Prevent CSRV Hacks

CSRF hacks invoves posting the data into a valid URL that requires authentication. The hack will depend on an authentication token that is available in the browser’s cache and when the bad URL does the post, the browser will use the cached credentials. Even if we have a WebAPI backed application, this same loophole will exist. In fact, even when WebAPI with Basic Authentication is enabled, the hack will be a little easier to execute because the browsers caches Basic Auth to prevent promoting for authentication for each resource they are getting.

Read the tutorial on how to prevent CSRV hacks here: http://www.dotnetcurry.com/ShowArticle.aspx?ID=890

Share and Enjoy

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

How to Restrict Downloading of Files From Unauthorized Users Using ASP.NET and C#

Sometimes there will be times where you need to save a file in your web host, but you don’t want it accessed by everyone. Like when you want an e-book be available only to the users that have subscribed to your website, they are the only people who can view and download the files.

If you want to restrict unauthorized access to your files, this article will show you a trick.

First, make the user login to the system, then add the .cs code as stated in the post, then add an error page so if the user is not authorized to access the file, they will be greeted with an error message.

Read the rest of the post here:http://www.dotnetpools.com/Article/ArticleDetiail/?articleId=259&title=Code-To-Restrict-Downloading-Of–Files-From-Unauthorized-User-in-Asp.net-Using-

Share and Enjoy

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

100 of The Best ASP.NET Addons and Plugins

Are you finding ways to make your ASP.NET pages even better? The good news is this website has set up a collection of the best ASP.NET Add ons and Plugins to add to your website. If you don’t know ASP.NET is a powerful framework for creating rich, and dynamic applications to use for any website. It is developed by Microsoft; thus you are confident that your site is built without any difficulties. This post has collected all of the most popular ASP.NET add ons so its easy for you to just started building your own website from scratch.

View the collection in this blog: http://webdesigntunes.com/coding/asp-net-add-ons/

Share and Enjoy

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

Infinite Scrolling Using ASP.NET Web API and Knockout JS

The most common way to represent data is in pages where data are shown in a grid and is showing a navigation pane in page numbers to navigate to multiple pages. But what if you want to present data in a list similar to what blogs do? Where the most recent data is at the top and the older ones are at the bottom? And what if, instead of having a navigation pane at the bottom, the list will go on and on as the user scrolls down the page?

This article will give you a quick guide on how to develop infinite scrolling capability using ASP.NET Web API and KnockOutJS.

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

Share and Enjoy

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