char[] constant = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' };
StringBuilder ascii = new StringBuilder();
// byte[] bytes = new byte[100];
Random random = new Random();
// int code;
// string strRnd = "ÓοÍ" + random.Next(9).ToString() + random.Next(9).ToString() + random.Next(9).ToString();
for (int i = 0; i < 4; i++)
{
// code = random.Next(62);
ascii.Append(constant[random.Next(62)]);
}
// ASCIIEncoding ascii = new ASCIIEncoding();
lbl.Text = ascii.ToString();
IIS×ÔÉíÊDz»ÄÜ´¦ÀíÏñASPXÀ©Õ¹ÃûÕâÑùµÄÒ³Ãæ£¬Ö»ÄÜÖ±½ÓÇëÇóÏñHTMLÕâÑùµÄ¾²Ì¬Îļþ£¬Ö®ËùÒÔÄÜ´¦ÀíASPXÕâÑùÀ©Õ¹ÃûµÄÒ³Ãæ£¬ÊÇÒòΪIISÓÐÒ»¸öISAPI¹ýÂËÆ÷£¬ËüÊÇÒ»¸öCOM×é¼þ¡£ASP.NET·þÎñÔÚ×¢²áµ½IISµÄʱºò£¬¾Í»áÌí¼ÓÒ»¸öWin32µÄÀ©Õ¹¶¯Ì¬¿âaspnet_isapi.dll¡£²¢½«À©Õ¹¿ÉÒÔ´¦ÀíµÄÒ³ÃæÀ©Õ¹Ãû£¨ÈçASPX£©×¢²áµ½IISÀïÃæ¡£À©Õ¹Æô¶¯ºó£¬¾Í¸ù ......
ÔÚMembership±íÖпÉÒԴ洢һЩÓû§µÄ»ù±¾ÐÅÏ¢£¬µ«ÓеÄʱºò£¬ÎÒÃÇÐèÒª¼Ç¼µÄÓû§ÐÅÏ¢Ô¶Ô¶²»Ö¹Membership±íÖÐÌṩµÄÕâЩ£¬ÈçQQ¡¢MSN¡¢¼Òͥסַ¡¢ÁªÏµµç»°µÈµÈ¡£ÄÇÈçºÎ°ÑÕâЩÓû§ÐÅÏ¢¼Ç¼µ½Êý¾Ý¿âÖÐÄØ£¿ÔÚasp.net2.0ÖÐΪÎÒÃÇÌṩÁ˸öÐÔÉèÖõŦÄܨD¨DProfile¡£ÏÂÃæ¿´Ò»ÏÂProfileµÄ¼¸¸öÌØÕ÷£º
1) Profile¸ù¾Ýÿ¸öÓû§´æ´¢¸÷×Ôµ ......