<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Loops</title> <script runat="server" language="C#"> void Page_Load() { int counter = 0; do { messageLabel.Text = counter.ToString(); counter++; } while (counter <= 10); } </script> </head> <body> <form runat="server"> <asp:Label id="messageLabel" runat="server"/> </form> </body> </html>