Why MVC is Better Over Webforms

This article would be using two terminologies ASP.NET WEbforms and ASP.NET MVC. If you have watched the recent Microsoft Agenda, you’ll clearly see that they are focusing on MVC. The question to why Microsoft is so keen to dump ASP.NET Webform and persuade using ASP.NET MVC is still trivial.

So this is what the article will focus on. If you have observed, developers usually drag and drop user controls on the designers and the VS tools codes in behind the code.

When you drag and drop a button control on the designer, a button object is created and developers can write a code in the click event of the button object.

Read the rest of the post here: http://www.codeproject.com/Articles/821275/Webforms-vs-MVC-and-Why-MVC-is-better

Share and Enjoy

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

ASP.NET MVC5: Extending and Modifying Roles

In the recent article about extending ASP.NET 5 identity model, the author add some custom properties to the basic IdentityUser class, and some basic role-based identity management. However, the author did not discuss modifying, extending, or working directly with Roles beyond seeding the database with basic roles with which to manage application access.

There are two reasons to extend the basic ASP.NET IdentityRole class and working directly with roles from an administrative perspective:

ASP.NET Identity User is fairly easy to extend.

When roles are used to enforce access restrictions, they are basically hard-coded; therefore, it gives the administrators the ability to add, modify, and delete roles.

Read the rest of the post here: http://www.codeproject.com/Articles/727054/ASP-NET-MVC-Identity-Extending-and-Modifying-R

Share and Enjoy

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

Angular: BDD with Angular JS

In the previous post, we discussed the importance of Behavior Driven Testing but the examples in the article went straight to JavaScript rather than Angualar. We need to modify the example to be Angular but to do so, we need a few more fundamentals.

 

So let’s return to the program and modify our index.hml. Make sure you have Bootstrap.css.

You’ll also need to create your first Controller. The role of the controller is to be able to provide data to the view which is identified as VM or View Model.

You’ll also need to build another directive: ng-repeat.

The job of ng-repeat is similar to foreach loop.

Read the rest of the tutorial here: http://blog.falafel.com/Blogs/jesse-liberty/2014/04/11/angular-part-3-bdd-with-angularjs

 

Share and Enjoy

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

PowerShell Data Basics: Using XML

If you want to effectively use PowerShell, you must know how to use XML. XML is a data interchange format that is the most reliable way to ensure that the object’s data are preserved.

The data, is the heart of PowerShell. PowerShell converts external data into PowerShell objects and vice versa.

There are two built-in techniques in working with XML data in PowerShell:

XPath approach and the dot notation approach. This article will tackle these approaches and how it is a benefit or a disadvantage to your data.

Read the rest of the code here: https://www.simple-talk.com/sysadmin/powershell/powershell-data-basics-xml/

Share and Enjoy

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

Lock Page and Disable all ASP.NET Form Controls then Load Animated GIF During a Post-Back

The biggest problem in web pages, particularly ASP.NET forms, is that it can take up a long time to process once it is submitted. This can be a problem specially when submitting forms. The user thinks that your site is not submitting their input so they press the submit button again hoping to get the information faster. One way we can solve this is by disabling the submit button once it is pushed, but what if your page has more than one button?

In this article, we’ll show you how to disable all your ASP.NET form controls during a postback and show a friendly animated GIF while the page is posting back.

 

Read the rest of the article here: http://www.codeproject.com/Articles/35061/Lock-ASP-NET-Page-and-Show-Animated-Image-While-Wa

Share and Enjoy

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

How to Program xLib using Mono

There are a lot of Unix/Linux tools today are coded in C/C++ which is against Xlib/X11. A migration to C# can be simplify the maintenance and few new opportunities, but the problem is, developers stick to their inherent environment. The change from the GUI development environment to Xlib/X11 to GTK or Qt has a lot of advantages like rapid prototyping and high level GUI elements.

In this article, we’ll show you how to access Xlib/X11 API from C# using Mono Develop. Most of the API calls are ready-to-use, defined, and test and some of the challenges are mastered. This post is aimed to verify that programming Xlib/X11 with C# can be easily achieved.

Read the rest of the post here: http://www.codeproject.com/Articles/584743/Programming-Xlib-with-Mono-Deve

Share and Enjoy

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

The Evolution of Azure Web Application

Windows Azure have seen a lot of updates for the past year. Microsoft is either adding new services, or updating existing features that developers surely enjoy. Two of the most recent Windows Azure updates were Azure Web Sites and Windows Azure Virtual Machines. With these, developers can start creating applications for free in Windows Azure website, has evolved into a more robust Cloud Service, and Windows Azure Platform allows developers the flexibility with a lot of choices that most platform can’t offer.

In this article, we’ll show you how Windows Azure is constantly evolving over time. If you don’t have Windows Azure yet, I suggest you give it a try after reading this post.

Read the rest of the post here: http://www.developerfusion.com/article/148148/the-evolution-of-a-azure-web-application/

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 Develop ASP.NET Applications and Deploying it Into Windows Azure Cloud

The ASP.NET Framework for developing web applications has 2 options: ASP.NET Web Pages and ASP.NET MVC applications. ASP.NET is basically an alternative web application using the Microsoft .Net application framework. ASP.NET Framework is a framework that divides the application into three components, namely Model, View, and Controller.

In this article, we are going to use Microsoft Azure SDK 1.5 to build a sample application and deploying it into the cloud. Installing the Azure SDK means that you already have the MVC templates ready for creating an MVC 4 application.

http://dotnetslackers.com/articles/aspnet/Developing-ASP-NET-MVC-4-Application-and-Deploying-to-Windows-Azure-Cloud.aspx

Share and Enjoy

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

Top Ten Articles About ASP.NET

If you are itching to try out some code or want to learn about the old and new features of ASP.NET, you have to read the top ten articles about ASP.NET. This features the best and the greatest articles about ASP.NET in DotNetCurry.com. Here is the list:

Tips and Tricks in Using GridView in ASP.NET
How To Open Popup Windows in IE/FireFox and return values Using ASP.NET
How to Delete Multiple Rows in GridView
Check or Unchek all Items in CheckBoxList using ASP.NET and JavaScript
How to Implement Keyboard Shortcuts using ASP.NET and JavaScript
How to Save and Retrieve Images from Database
ASP.NET Validation Controls
How to Call Server Side Function from Client Side Code using PageMethods
ASP.NET Interview Questions – Beginner
ASP.NET AJAX Calendar Extender – Tips and Tricks

Read the rest of the post in dotnetcurry.com.

Share and Enjoy

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