ASP.NET(c#)³£ÓÃÀຯÊý
³£Óú¯ÊýϵÁÐ:
public static string Get_ClientIP() µÃµ½¿Í»§¶ËIP
public static string Get_CMac(string IP) µÃµ½¿Í»§¶Ë CMac µØÖ·
public static string RequestF(string xPName,string xPType,int xLenDef) °²È«½ÓÊÕÊý¾ÝϵÁÐ
public static string Show_Cont(string xStr) ¹ýÂËÏÔʾ×Ö´®
public static string Show_jsStr(string xStr) ¹ýÂËÏÔʾjs
°²È«¼ì²âº¯Êý:
public static string CheckUrl(string xDirPage) ÉÏÒ³µØÖ·ÈÏÖ¤
public static string Chk_Perm0(string xPerm,string xSys,string xAct) ȨÏÞÈÏ֤ϵÁÐ
public static string Chk_Perm1(string xPerm,string xSys,string xAct) ȨÏÞÈÏ֤ϵÁÐ
public static string Chk_Perm2(string xPerm,string xSys,string xAct) ȨÏÞÈÏ֤ϵÁÐ
Óʼþ·¢Ëͺ¯Êý:
public void SendEmail(string xSubj,string xCont,string FmAddr,string ToAddr)
public void SendSmtp(string xSubj,string xCont,string xfrom,string xTo)
¼ÓÃܽâÃܺ¯Êý£º
public static string Enc_PW(string xID,string xPW,int xLen) ¸Ä×°sha1+md5¼ÓÃܽâÃܺ¯Êý¼ÓÃܺ¯Êý
public static string Conv_10toXX(long xNum,int xBase) 10½øÖÆ ×ª XX ½øÖÆ
public static long Conv_XXto10(string xStr,int xBase) xx½øÖÆ ×ª 10 ½øÖÆ
public static string DESDec(string pToDecrypt, string sKey) DES½âÃÜ
public static string DESEnc(string pToEncrypt, string sKey) DES¼ÓÃÜÃÜ
public static string DESPeace(string xStr, string xType) ¸Ä×°DES
public static string DESSwap(string xStr, int xN) DES ¸Ä×°Ëã·¨
Îļþ²Ù×÷º¯Êý£º
public static string fCreate(string xFile,string xContent) ½¨Á¢Îļþ
public void ImgCode (Page containsPage,string validateNum) Éú³ÉͼƬÈÏÖ¤Âë
public static string ImgShow(string xPName,int xImgW,int xImgH,int xMaxW,int xMaxH) °´±ÈÀý´óСÏÔʾͼƬ
public static DataTable fList(string xPath) ÏÔʾÎļþÁбí ÏÔʾÎļþ¼ÐÁбí
public static string fRead(string xFile) Îļþ¶ÁÈ¡º¯Êý
public static ArrayList fUpload(HttpPostedFile xFile,string xPath,string xOrg,int xSize,string xType) ÎļþÉÏ´«ÈÏÖ¤º¯Êý
ʱ¼ä/Ëæ¼´×Ö´®º¯Êý£º
public static string Get_AutoID(int xLen) ×Ô¶¯Ëæ»ú ID ´®
public static string Get_HHMMSS() µÃµ½Ê±¼äHHm
Ïà¹ØÎĵµ£º
»º´æÊǰÑÓ¦ÓóÌÐòÖеÄÐèҪƵ·±¡¢¿ìËÙ·ÃÎʵÄÊý¾Ý±£´æÔÚÄÚ´æÖеıà³Ì¼¼Êõ£¬Í¨³£ÓÃÀ´Ìá¸ßÍøÂçµÄÏìÓ¦ËÙ¶È¡£ÔÚASP.NETÖÐʹÓÃCacheÀàÀ´¹ÜÀí»º´æ¡£ÏÂÃæÏêÊö¿Ø¼þ¼¶Êý¾Ý»º´æ¹¦ÄܺÍÒ³Ãæ¼¶Êý¾Ý»º´æ¹¦ÄܵÄʵÏÖ£º
(1)Êý¾Ý¿â»º´æÒÀÀµ
Êý¾Ý¿â»º´æÒÀÀµÓÉSqlCacheDependencyÀà¹ÜÀí£»
Êý¾Ý¿â»º´æÒÀÀµµÄÓŵ㣺
1¡¢Ìá¸ßÊý¾Ý³ÊÏÖËÙ¶È£¬Ã¿´Î»ñ ......
ASP.NET´ò¿ªÐ´°¿Ú·½·¨Ò»:
Response.Write(" <script language=\"javascript\">window.open('aaa.aspx','д°¿Ú,\"toolbar=yes,location=no,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes\"); </script>");
ÕâÖÖ·½Ê½´úÂëÿ´ÎÊÇÉú³ÉÔÚÒ³Ãæ×î¶¥¶Ë
ASP.NET´ò¿ªÐ´°¿Ú·½·¨¶þ:
stri ......
ͬÑùÊÇһƪתÌûµÄÎÄÕÂ,
ÔÎÄ: http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-2-modelmetadata.html
×ÅÖØ½éÉÜÁËASP.NET MVC2 ÀïÃæµÄ ModelMetadata Àà
ASP.NET MVC 2 Templates, Part 2: ModelMetadata
Series Index
Part 1: Introduction
Part 2: ModelMetadata
Understanding You ......
asp.netµ¯³ö´°Ìå´óÈ«
<SCRIPT LANGUAGE="javascript">
¡¡¡¡<!--
¡¡¡¡window.open ('page.html')
¡¡¡¡-->
¡¡¡¡</SCRIPT>
¡¡¡¡
¡¡¡¡ÒòΪ×ÅÊÇÒ»¶Îjavascripts´úÂ룬ËùÒÔËüÃÇÓ¦¸Ã·ÅÔÚ<SCRIPT LANGUAGE="javascript">±êÇ©ºÍ</script>Ö®¼ä¡£<!-- ºÍ -->ÊǶÔһЩ°æ±¾µÍµÄä ......
Ô´ÌùµØÖ·£ºhttp://www.cnblogs.com/yanyangtian/archive/2009/05/07/1451705.html
ǰÑÔ£ºÒì³£µÄ´¦ÀíÔÚÏîÄ¿¿ª·¢ÖÐÊǺÜÓбØÒªµÄ£¬Òì³£µÄ´¦Àí²»½ö½öÖ»ÊÇtry..catch..finally¾ÍÍêÊÂÁ˵ġ£Òì³£´¦Àí¾ø¶Ô¿ÉÒԳƿª·¢ÖеÄÖØÒª×é³É²¿·Ö¡£±ØÐëÕýÈ·µÄÃæ¶ÔÒì³ ......