//生成六位随机数字

  protected void BtnSave_Click(object sender, EventArgs e)
        {
            Random rd = new Random();
            int a = rd.Next(5, 99999);
            TxtNum.Text = string.Format("{0:00000}", a);// 001234
           
        }
posted @ 2008-01-17 20:50  冰峰剑心  阅读(336)  评论(0编辑  收藏  举报