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

asp.netÅжÏÊäÈëÎÄ×ÖÊÇ·ñÊÇÊý×Ö (ת)

·½°¸Ò»:
/**//// <summary>
/// Ãû³Æ£ºIsNumberic
/// ¹¦ÄÜ£ºÅжÏÊäÈëµÄÊÇ·ñÊÇÊý×Ö
/// ²ÎÊý£ºstring oText£ºÔ´Îı¾
/// ·µ»ØÖµ£º¡¡bool true:ÊÇ¡¡false:·ñ
/// </summary>
public bool IsNumberic(string oText)
{
try
{
int var1=Convert.ToInt32 (oText);
return true;
}
catch
{
return false;
}
}
     try catch·½·¨
     Àý£º
     try
     {
       Convert.ToInt32("123"):
       Console.Write("ÊÇÊý×Ö");
     }
     catch(Exception ex)
     {
       Console.Write("·ÇÊý×Ö");
     }
     ×¢£ºÈç¹ûÓкܶà×Ö·û´®ÒªÇóÅжϣ¬´Ë·½·¨ÐèÒª´óÁ¿µÄtry catch ÒÔ¼°finallyÀ´´¦ÀíºóÐøµÄ³ÌÐò.²»½¨ÒéʹÓô˷½·¨¡£
¸Ä½øÒ»ÏÂ:
ÒòΪ¿ÉÒÔתint ¿ÉÒÔתDecimal
    public bool IsNumberic(string oText)
    {
        try
        {
            Decimal Number = Convert.ToDecimal (oText);
            return true;
        }
        catch
        {
            return false;
        }
    }
·½°¸¶þ:
//Èç¹ûÊÇ´¿Êý×Ö»¹¿ÉÒÔ²ÉÓÃASCIIÂë½øÐÐÅжÏ
/// <summary>  
/// ÅжÏÊÇ·ñÊÇÊý×Ö  
/// </summary>  
/// <param name="str">×Ö·û´®</param>  
/// <returns>bool</returns>  
public bool IsNumeric(string str)  
{  
    if (str == null || str.Length == 0) &nbs


Ïà¹ØÎĵµ£º

ASP.NETÔÚVS2008ÖÐÈçºÎʵÏÖµ÷ÊÔ£¡~~~

µÚÒ»ÖÖÊÊÓÃÓÚûÓн¨Á¢ÐéÄâ·¾¶µÄÏîÄ¿£¬¶øÇÒÏîĿҲ²»´óµÄÇé¿öÏ£¬Ö±½Ó´ò¶Ïµã£¬Ö®ºóµã»÷F5ÔËÐС£
µÚ¶þÖÖÊÊÓÃÓÚ½¨Á¢ÐéÄâ·¾¶µÄÏîÄ¿£¬´òºÃ¶Ïµã£¬Ö®ºóÑ¡Ôñµ÷ÊÔ->¸½¼Óµ½½ø³Ì->Ñ¡Ôñaspnet_wp.exe£¬Ö®ºó´ò¿ªä¯ÀÀÆ÷£¬´ò¿ªÒ³Ã棬µ½ÓжϵãµÄµØ·½»á×Ô¶¯¸ú×Ù½øÈ¥£¡~
×¢£ºÓеIJÙ×÷ϵͳ¿ÉÄÜÕÒ²»µ½aspnet_wp.exe ¿ÉÄÜ´æÔÚccc.exeÖ®À ......

ASP.NETÒ³Ãæ´«ÖµµÄ¸÷ÖÖ·½·¨ºÍ·ÖÎö

WebÒ³ÃæÊÇÎÞ״̬µÄ£¬ ·þÎñÆ÷¶Ôÿһ´ÎÇëÇó¶¼ÈÏΪÀ´×Ô²»Í¬Óû§£¬Òò´Ë£¬±äÁ¿µÄ״̬ÔÚÁ¬Ðø¶ÔÍ¬Ò»Ò³ÃæµÄ¶à´ÎÇëÇóÖ®¼ä»òÔÚÒ³ÃæÌø×ªÊ±²»»á±»±£Áô¡£ÔÚÓÃASP.NET Éè¼Æ¿ª·¢Ò»¸öWebϵͳʱ£¬ Óöµ½Ò»¸öÖØÒªµÄÎÊÌâÊÇÈçºÎ±£Ö¤Êý¾ÝÔÚÒ³Ãæ¼ä½øÐÐÕýÈ·¡¢°²È«ºÍ¸ßЧµØ´«ËÍ£¬Asp.net ÌṩÁË״̬¹ÜÀíµÈ¶àÖÖ¼¼ÊõÀ´½â¾ö±£´æºÍ´« ......

Asp.netÒ³ÃæÖÐÒýÓÃjsÎļþÎÞЧµÄÎÊÌâµÄ½â¾ö·½·¨

ÔÚBSÏîÄ¿ÖУ¬Ä³¸öaspxÒ³ÃæÐèÒªÒýÓÃÍⲿ½Å±¾Îļþ£¬Í¨¹ýÔÚÒ³Ãæhead½Ú<script language="" src="">·½Ê½ÒýÓÃÖ¸¶¨µÄjsÖ®ºó£¬ÈÔÈ»ÎÞЧ¡£Í¨¹ýalert·½Ê½µ÷ÊÔ£¬·¢ÏÖÊÇÓÉÓÚjsÎļþ±àÂëÓëjsÎļþÄÚÈݲ»·û¡£ÓÉÓÚjsÎļþÖаüº¬ÖÐÎÄ×¢ÊÍ£¬ËùÒÔÐèÒªÉèÖÃjsÎļþΪ¿Éʶ±ðÖÐÎĵÄgb2312±àÂë¡£Æä·½·¨ÔÚÍøÉÏÒ²½²Êö£¬ÒÔÏÂÎªÍøÕªÄÚÈÝ£º
 &n ......

ASP.net¿ª·¢ÏµÁÐÖ®.netµÄÊÀ½ç

     ÔÚ.netµÄÊÀ½çÀïµ½µ×ÓÐÊ²Ã´ÄØ£¿µÚÒ»¸öÊÇ.net¿ò¼Ü£¨.net Framework)£¬ÏÖÔÚ×îеÄÒѾ­ÊÇ4.0°æ±¾ÁË£¬ºÇºÇ£¬µ«ÊÇÎÒµÄnetcmsÓõÄÊÇ2.0°æ±¾¡£µÚ¶þ¸öÊÇ.net¼¯³É¿ª·¢»·¾³£¬Ò²¾ÍÊÇÎÒÃÇÆ½³£¿´µ½µÄvisual studio .net 2003 £¨2005 2008µÈ£©¡£ÊÇÓÃÀ´Ð´³ÌÐòºÍµ÷ÊÔ³ÌÐòÓõġ£µ±È»,Èç¹ûÄ㹻ţ±Æ£¬ÄãÒ²¿ÉÒÔÓüÇʱ¾ ......

ת£ºÔÚASP.NETÖÐÔÚ²»Í¬Ò³Ãæ¼ä½øÐÐÊý¾Ý´«µÝÓÐÄÄЩ·½·¨

Ëѵģ¬ÍøÂçºÜÇ¿´óµÄ
1. Get(¼´Ê¹ÓÃQueryStringÏÔʽ´«µÝ)
     ·½Ê½£ºÔÚurlºóÃæ¸ú²ÎÊý¡£
     ÌØµã£º¼òµ¥¡¢·½±ã¡£
     ȱµã£º×Ö·û´®³¤¶È×Ϊ255¸ö×Ö·û£»Êý¾Ýй©ÔÚurlÖС£
     ÊÊÓÃÊý¾Ý£º¼òµ¥¡¢ÉÙÁ¿¡¢¹Ø¼üµÄÊý¾Ý¡£
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ