摘要: 1 方法: 2 public string RndNum(int VcodeNum) 3 { 4 string Vchar = "0,1,2,3,4,5,6,7,8,9"; 5 string[] VcArray = Vchar.Split(new Char[] { ',' }); 6 string VNum = ""; 7 //int temp = -1; 8 Random rand = new Random(); 9 for (int i = 1; i < VcodeNum + 1; i++)10 {11 int t = rand 阅读全文
posted @ 2011-03-14 16:18 张@天 阅读(371) 评论(0) 推荐(0) 编辑
摘要: <asp:TextBox ID="TextBox1" runat="server" onkeyup="value=value.replace(/[^\d]/g,'')"></asp:TextBox> 阅读全文
posted @ 2011-03-14 16:15 张@天 阅读(152) 评论(0) 推荐(0) 编辑