Logo         Community
The Company
Your Account
Contact Us
ASP.NET Basics (part 4): Looping The Loop
Control the flow of your ASP.NET scripts with loops.

| Round And Around |

Last time, I introduced you to C#'s "if-else" family of conditional statements, and explained how they could be used in combination with comparison and logical operators to control program flow and execution. I also explained how conditional statements could be nested within one another, and wrapped things up with a discussion of the "switch" conditional statement.

This week, I'm going to proceed a little further down the road, with a look at the different types of loops supported by C# (and, by extension, ASP.NET). As always, I'll begin with a definition for those of you coming at this series from a non-programming background. In geek-talk, a "loop" is precisely what you would think - a programming construct that allows you to execute a set of statements over and over again, until a pre-defined condition is met.

C# offer a wide range of loops, in keeping with its profile as a next-generation programming language. It has the "while" and "do-while" loops, for situations involving a variable number of loop iterations, as well as the traditional "for" loop for loops involving a pre-defined number of iterations. Over the next few pages, I'll explain these loops in greater detail, together with examples and illustrations of how they can be used.

Every programming language worth its salt uses loops - and, incidentally, so do many shampoo manufacturers. Think lather-rinse-repeat, and you'll see what I mean...

How to do Everything with PHP & MySQL
How to do Everything with PHP & MySQL, the best-selling book by Melonfire, explains how to take full advantage of PHP's built-in support for MySQL and link the results of database queries to Web pages. You'll get full details on PHP programming and MySQL database development, and then you'll learn to use these two cutting-edge technologies together. Easy-to-follow sample applications include a PHP online shopping cart, a MySQL order tracking system, and a PHP/MySQL news publishing system.

Read more, or grab your copy now!

more like this print this article  next page
In trog...
Logging With PHP
Building A Quick-And-Dirty PHP/MySQL Publishing System
Output Buffering With PHP
Date/Time Processing With PHP
Creating Web Calendars With The PEAR Calendar Class
In the hitg report...
Crime Scenes
Animal Attraction
Lord Of The Strings
In boombox...
Patience - George Michael
Think Tank - Blur
My Private Nation - Train
In colophon...
Hostage - Robert Crais
The Dead Heart - Douglas Kennedy
Right As Rain - George Pelecanos
In cut!...
American Chai
The Core
Find out how you can use this article on your own Web site!

Copyright © 1998-2018 Melonfire. All rights reserved
Terms and Conditions | Feedback