.net中使用while语句的使用
来源:互联网 发布:淘宝客小程序源码 编辑:程序博客网 时间:2024/06/10 11:57
<%@ Page Language="c#" %>
<script runat="server">
void Page_load()
{
Random r = new Random();
int diceRoll = 0;
while (diceRoll != 6)
{
diceRoll = Convert.ToInt32(r.Next(6)) + 1;
message1.Text = message1.Text + "Rolled a: " + diceRoll + "<br />";
}
}
</script>
<html>
<head>
<title>Do Loop Example</title>
</head>
<body>
<asp:Label id="message1" runat="server"></asp:Label>
</body>
</html>
<script runat="server">
void Page_load()
{
Random r = new Random();
int diceRoll = 0;
while (diceRoll != 6)
{
diceRoll = Convert.ToInt32(r.Next(6)) + 1;
message1.Text = message1.Text + "Rolled a: " + diceRoll + "<br />";
}
}
</script>
<html>
<head>
<title>Do Loop Example</title>
</head>
<body>
<asp:Label id="message1" runat="server"></asp:Label>
</body>
</html>
- .net中使用while语句的使用
- While 语句的使用
- while语句的使用
- while语句的使用注意事项
- oralce while 语句的使用
- while循环语句的使用
- MySQL存储过程中使用 WHILE 循环语句的用法
- 在do while语句中使用continue的误解
- C语言中循环结构语句 for循环及while,do--while 的使用
- shell 循环语句while的使用
- while循环语句的初步使用
- Delphi while do 语句使用
- 使用while语句 写出计算器
- MySQL 存储过程中使用 WHILE 循环语句
- Python中while语句说明与简单使用实例
- MySQL 使用while语句向数据表中批量插入数据
- python else在for、while、try 语句中使用
- 循环语句的使用——while、do_while、for
- VC中实现多格式图像的灵活转换
- Struts学习 错误:exception: cannot find actionmappings or actionformbeans collection
- .net中swith,case开关语句的使用
- 早上的时候发现生活的残酷!
- WINDOW自带工具.
- .net中使用while语句的使用
- MapXtreme2004代码 几个地图工具的使用(C#)
- eclipse 下配置jboss3.22
- 创建可分页、可排序的 DataGrid
- SQL注入
- Ring的权限提升21大法!
- 来瞧瞧我做的.net版工作流定义工具,请高手指点
- ASP.Net生成静态HTML页
- 从飞龙文章系统上传漏洞到系统管理员的飞跃