Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.netÉú³ÉÊý×Ö¡¢×ÖĸËæ»úÊý

 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();


Ïà¹ØÎĵµ£º

6ÖÖ³£ÓÃASP.NETÑéÖ¤¿Ø¼þ


ASP.NET³£ÓõÄ6ÖÖÑéÖ¤¿Ø¼þ£¬ÈçÏ£º
RequiredFieldValidator £¨±ØÐë×Ö¶ÎÑéÖ¤£© ÓÃÓÚ¼ì²éÊÇ·ñÓÐÊäÈëÖµ  
CompareValidator £¨±È½ÏÑéÖ¤£© °´É趨±È½ÏÁ½¸öÊäÈë  
RangeValidator £¨·¶Î§ÑéÖ¤£© ÊäÈëÊÇ·ñÔÚÖ¸¶¨·¶Î§  
RegularExpressionValidator £¨Õ ......

ASP.NETË¢ÐÂÒ³Ãæ

      µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e )   
{
     Response.Redirect( Request.Url.ToString( ) );
}
 
µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e )   
{ ......

ASP.NET treeview¿Ø¼þ¸Ä±ä½áµã×ÖÌåÑÕÉ«

Ôõôдһ¶Îasp.net´úÂ룬°ÑÒ»¸ö×Ö·û´®ÖÐËùÓеÄHTML±ê¼Ç¶¼È¥µô£¬Ö»Ê£ÏÂÎÄ×ÖÄÚÈÝÄØ£¿  
  ±ÈÈ磺<td   width=\"427\"   align=\"left\"   class=\"cn\">½Ï¸ßµÄζȣ¬¿ÉÄÜÔö¼ÓÆ¡¾Æ¶ÔÄúµÄÓÕ»ó£¬ÊÊÁ¿ÒûÓÃÆ¡¾Æ»á¸øÄú´øÀ´ÇåÁ¹µÄ¸Ð¾õ£¬µ«Ç§Íò×¢Òâ²»Òª¹ýÁ¿ßÏ£¡</td>  
    ......

asp.netÁ¬½ÓsqlÓõÄSqlHelper

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Collections;
using System.Data.SqlClient;
namespace DAL
{
    /// <summary>
    /// Êý¾Ý¿âµÄͨÓ÷ÃÎÊ´úÂë
    /// ´ËÀàΪ³éÏóÀ࣬²»ÔÊÐíʵÀý»¯£¬ÔÚÓ¦Óà ......

ASP.NET Web Developer Checklist




The following is a simple checklist you can use when building web
applications.  Much of this still applies to other technologies and can
easily be extended.  I try not to get too specific on technology or
methodology, but it is definitely leaning toward ASP.NET.
If you
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ