Learn MVC in 7 Days: Day 2

So you want to learn MVC? This is Day 2 of the 7 Day course in learning about Model View Controller. In day 1, we learned about controllers, strong-typed views, and helper classes. If you haven’t gone to Day 1, I suggest to go to it first before proceeding to Day 2.

In this tutorial, we’ll learn about Unit test, routing, and outbound URLs.

we’ll look into the four using through labs:
Writing unit tests on MVC projects
Configure MVC routings
Validate MVC routes
Configure MVC outbound routes.

Read the rest of the post here: http://www.codeproject.com/Articles/259560/Learn-MVC-Model-view-controller-Step-by-Step-in

Share and Enjoy

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

Angular Tutorial: Adding A Service

If you’ve been following the Angular tutorials I’ve posted for the past few months, then this is the fifth installment of this series. If you haven’t then I suggest you go to the first part of this tutorial so you can catch up. In the previous installment, the tutorial gives us an idea on how to use Jasmine to test a Controller and left with a suggestion that the program can further be improved by adding a service.

Before addign a service, we need to make the application more realistic by adding a couple views. You can do that by adding an Admin and an Expense folder to the App folder.

Read the rest of the tutorial here: http://blog.falafel.com/Blogs/jesse-liberty/2014/04/25/angular-part-5-adding-a-service

Share and Enjoy

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

Leverage .NET Framework Classes From VBA

Inside the .NET regular exceptions are handled by a set of types. The entry point is the Regex Class. The class has two main methods:

IsMatch – this method checks whether or not a string matches the pattern.

Matches – find all the matches of a pattern in a string.

In this post, codeproject.com teaches you how to wrap .NET components to make it available to your VBA code. This is a simple process, and not that trivial to begin with. Building a wrapper causes less trouble than finding an existing VBA component, understanding how it works, and integrating it, without having the assurance that it works as advertised.

Read the rest of the tutorial here: http://www.codeproject.com/Articles/762426/Leverage-the-NET-framework-classes-from-VBA

Share and Enjoy

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

Learn MVC in 7 Days – Day 1

Want to learn ASP.NET MVC in 7 Days? Here’s your guide to learning the programming language.

The way you’ll learn MVC is by doing labs, looking at the steps on how to achieve those labs, and watching the demo videos. The article series is divided to 7 days with 35 hands-on labs and every day we do 5 labs to help achieve the goal.

Day 1 is your introduction to MVC. The course will also teach you how to write a simple Hello World ASP.NET MVC application. You’ll also  learn how to share data between controller and view using view data. And other interesting tutorials.

Read the rest of the post here: http://www.codeproject.com/Articles/207797/Learn-MVC-Model-View-Controller-step-by-step-in

Share and Enjoy

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

ASP.NET Interview Questions for Beginners and Professionals

If you have gone through the basics of ASP.NET, have done some apps for the past few years, then its time you put those skills to good use. When applying for a job as an ASP.NET developer, questions about this programming language is essential in discovering what skills you have as a developer.

Security is a huge area of concern in ASP.NET, so in this post, interview questions all relates to ASP.NET security.

What is passport authentication?

How does it work?

What are the advantages of Passport Authentication?

What is role-based security?

What are the different security controls in ASP.NET?

and many more.

Find out the remaining questions and your possible answers in this post: http://www.codeproject.com/Articles/762822/ASP-NET-Interview-Questions-for-Beginners-and-Pr

Share and Enjoy

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

How to Group GridView in ASP.NET MVC

Grouping data in grid view is an essential part of the UI features these days. With ASP.NET MVC you need to completely control the html as many  people don’t like to use 3rd party controls. Developers often use a simple for loop to display tabular/grid so they can customize it according to their needs.

This article will provide you with a simplified approach to group the grid view data directly by coding it in your view. You can also add customized data in group header and footer according to your needs.

This approach will use group by to group the data of the grid view then uses a normal conventional loop to display the data in the desired format.

Read the rest of the post here: http://www.codeproject.com/Articles/761687/Grouping-Gridview-in-Asp-Net-MVC

Share and Enjoy

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

WebGL to Windows 8

In today’s project, Lee Stott and David Cathue combines Web and Windows taking it to the next logical step and helping you bring your WebGL app to Windows 8 and the Windows Store.

WebGL has man interesting opportunities specially in the gaming industry. You can develop a game for the web that can run across any platforms and take the same code to build a Windows Store app.

Please watch the videos to demonstrate the use of Web Application template being used to build a Windows 8/HTML/JS game. This game can also be built as a native Windows 8 game which is a big advantage because this game can work offline.

Read the rest of the post here: http://channel9.msdn.com/coding4fun/blog/WebGL-to-Windows-8

Share and Enjoy

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

Deconstructing a Function from Microsoft Word 1.1a

When Microsoft Word released the source code for MS-DOS and Word, Ode to Code have to take a look at the functions. In this post, the author came along with a function ReplacePropsCA from srchfmt.c file.

What the author realized was that every function has an owner and the flow control is all wrong. There are also some hilarious notations.

Here is the code:

/* %%Function:ReplacePropsCa %%Owner:rosiep */

ReplacePropsCa(prpp, pca)
struct RPP *prpp;
struct CA *pca;
{
    struct CA caInval;
    if (prpp->cbgrpprlChp)
        {
        ExpandCaSprm(pca, &caInval, prpp->grpprlChp);
        ApplyGrpprlCa(prpp->grpprlChp, prpp->cbgrpprlChp, pca);
        if (!vfNoInval)
            {
            InvalCp(pca);
            InvalText(pca, fFalse /* fEdit */);
            }
        }
    if (prpp->cbgrpprlPap)
        {
        int fStc;
        struct CHP chp;
        struct PAP pap;
        if (fStc = (*prpp->grpprlPap == sprmPStc))
            {
            CachePara(pca->doc, pca->cpFirst);
            pap = vpapFetch;
            }
        ExpandCaSprm(pca, &caInval, prpp->grpprlPap);
        ApplyGrpprlCa(prpp->grpprlPap, prpp->cbgrpprlPap, pca);
        if (fStc)
            {
            GetMajorityChp(pca, &chp);
            EmitSprmCMajCa(pca, &chp);
            if (!FMatchAbs(pca->doc, &pap, &vpapFetch))
                InvalPageView(pca->doc);
            }
        if (!vfNoInval)
            {
            InvalCp(&caInval);
            InvalText (pca, fFalse /* fEdit */);
            DirtyOutline(pca->doc);
            }
        }
}

Share and Enjoy

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

Migrating Content Between Report Servers

A common challenge and administrator and developer face is when they have to migrate content between SQL Server Reporting Server. This is because SQL Server Reporting Services doesn’t include a feature for migrating content items from one reporting services to another report server.

There are two ways to overcome the challenge:

1. Create RSS scripts that are used by rs.exe to migrate the content between reports servers of the same mode or different modes.

2. Run Reporting Services Migration Tool to migrate the content from Native mode report server to a SharePoint mode report server.

This whitepaper discuss the reporting services migration tool and several aspects of method of migration.

Read the post here: http://blog.sqlauthority.com/2014/04/13/sqlauthority-news-microsoft-whitepaper-migrating-content-between-report-servers/

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