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
Ïà¹ØÎĵµ£º
¿Í»§¶Ë´«ËÍÊý¾Ýµ½·þÎñÆ÷¶ËÓÐÈýÖÖ·½·¨£º
1.form
2.querystring
3.cookie
ÀûÓÃÕâЩ·½Ê½È¡µÃµÄÊý¾ÝÔÚ·þÎñÆ÷¶Ë¶¼ÊÇ×ֵ伯ºÏ,Èç¹ûÒª¾«È·È¡µ½Ä³¸ö¼¯ºÏµÄÖµ£¬ÔòÖ±½ÓʹÓöÔÓ¦µÄ¼¯ºÏµÄÃû³Æ£¬ÈýÖÖ·½Ê½¶ÔÓ¦µÄ¼¯ºÏÈçÏ£º
1.form:request.form
2.querystring:request.querystring
3.cookie:request.cookie
ÀûÓÃrequest.p ......
asp.netµ¯³ö´°¿ÚÉè¼Æ
¡²×ª¡³http://hi.baidu.com/%CE%DE%B7%E7%CC%FD%BA%A3/blog/item/af7182c596ce3bc339db4959.html
ÕªÒª£º±¾ÎÄÌÖÂÛÈçºÎÒÔASP.NETÖеÄCodeBehind·½Ê½ÊµÏÖ¸÷ÖÖµ¯³ö´°¿Ú£¬ÊµÏÖÓ뵯³ö´°¿ÚµÄ½»»¥¡£²¢Ì½ÌÖ³£Ó÷DZê×¼IEä¯ÀÀÆ÷¶Ôµ¯³öµÄ´°¿ÚµÄ¸÷ÖÖ¹ýÂËÐÐΪ¼°Ê¹Óõ¯³ö´°¿ÚÏàÓ¦¶Ô²ß£¬ÒÔÆÚ¸ø³öʹÓõ¯³ö´°¿ÚµÄÒ»¸öͨ ......
Çмǣ¬ÇÐ¼Ç DateTime.Now.Date.ToString("yyyyÄêMMÔÂddÈÕ"); //MM Òª´óд£¬·ñÔò»áÊÇ00,²»ÊÇÕæÊµµÄÔÂ·Ý private void getDate()
{
date.Text = DateTime.Now.Date.ToString("yyyyÄêMMÔÂddÈÕ"); //Õâ¸öËæÒâµÄ£ºyyyy-MM-dd Ò²¿ÉÒÔ
string Temp="";
switch (DateTime.Now.DayOfWeek)
{
case DayO ......
Ô´ÌùµØÖ·£ºhttp://www.cnblogs.com/yanyangtian/archive/2009/05/07/1451705.html
ǰÑÔ£ºÒì³£µÄ´¦ÀíÔÚÏîÄ¿¿ª·¢ÖÐÊǺÜÓбØÒªµÄ£¬Òì³£µÄ´¦Àí²»½ö½öÖ»ÊÇtry..catch..finally¾ÍÍêÊÂÁ˵ġ£Òì³£´¦Àí¾ø¶Ô¿ÉÒԳƿª·¢ÖеÄÖØÒª×é³É²¿·Ö¡£±ØÐëÕýÈ·µÄÃæ¶ÔÒì³ ......