Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 MVC2 Route

MVC2 ¿ò¼Ü°²×°Íê³ÉÒÔºóÎÒÃǾͿÉÒÔ¿ªÊ¼ÎÒÃÇµÄ MVCÖ®ÂÃÁË£¬ºÇºÇ
±¾´ÎѧϰÄÚÈÝ£ºRoute
Ê×ÏÈ route µÄÖÐÎÄÒâ˼¾ÍÊÇÎÒÃdz£ËµµÄ“·ÓÉ”£¬È·ÊµÕâÀïÒ²ÊÇÕâ¸öÒâ˼£¬ÔÚÎÒÃÇMVCÖÐÒѾ­²»ÔÙʹÓà XX.aspx À´·ÃÎÊÒ³ÃæÁË£¬
ËùÓÐÒ³ÃæµÄÇëÇó»áͨ¹ýrouteÀ´½âÎöÕÒµ½¶ÔÓ¦µÄ¿ØÖÆÆ÷(controller)ÀïÃæ¶ÔÓ¦µÄ²Ù×÷(action)À´Ö´Ðеġ£
mv ......

asp.net µÈ±ÈÀýÉú³ÉÉÏ´«Í¼Æ¬µÄ¸ßÖÊÁ¿ËõÂÔͼµÄ·½·¨

·½·¨1
HttpFileCollection files   = HttpContext.Current.Request.Files;
//ÎÒÉèÖõĴóС²»³¬¹ýA4Ö½µÄËõÂÔͼ
int newWidth=620;
int newHeight=880;
System.Drawing.Image img = null;
            
for(int iFile = 0; iFile < files.C ......

asp.net(c#)ÍøÒ³ÌøתÆßÖÖ·½·¨Ð¡½á

asp.net(c#)ÍøÒ³ÌøתÆßÖÖ·½·¨Ð¡½á
·¢²¼Ê±¼ä£º2009-11-25 11:13:03
¡¡¡¡1.Response.Redirect("http://www.yayiba.com",false);
¡¡¡¡Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚ2¸ö·þÎñÆ÷ÉÏ£¬¿ÉÊäÈëÍøÖ·»òÏà¶Ô·¾¶¡£ºóÃæµÄboolֵΪÊÇ·ñÍ£Ö¹Ö´Ðе±Ç°Ò³¡£
ÌøתÏòеÄÒ³Ã棬ԭ´°¿Ú±»´úÌæ¡£"
ä¯ÀÀÆ÷ÖеÄURLΪз¾¶¡£
:Response.Redirect·½ ......

ASP.NET MVCÓëWebFormÇø±ð

[תÌùÒ»]
ʹÓÃASP.NET MVC¿ò¼Ü£¬´´½¨Ä¬ÈÏÏîÄ¿£¬µÚÒ»Ö±¹Û¸Ð¾õ¾ÍÊǵØÖ·¶¼ÊÇRewrite¹ýµÄ¡£¶ÔÔ´ÂëºÍÅäÖÃÎļþÉÔ¼Ó·ÖÎö²»ÄÑ¿´³ö£¬MVCʹÓÃÁËhttpModulesÀ´À¹½ØµØÖ·ÇëÇ󣬾ßÌåÓõ½ÁËSystem.Web.RoutingÀà¿â£¨MVC2ÖУ¬MVC1ÔõôÓõÄÍü¼ÇÁË¡££©¶øÕⲿ·ÖÀà¿â±»°ü×°ÔÚ.NET Framework3.5 SP1ÖУ¬MVC2ÐèÒªSP1Ö§³ÖÒ²¾ÍÀíËùµ±È»ÁË¡£SP1Ìṩµ ......

ASP.NET MVCСÂÛ

Ç°ÑÔ
      ASP.NET MVC×÷Ϊ΢Èí¹Ù·½µÄ.NETƽ̨ÏÂMVC½â¾ö·½°¸£¬×Ôµ®ÉúÆð¾ÍÎüÒýÁËÖÚ¶à.NETƽ̨¿ª·¢ÈËÔ±µÄÑÛÇò¡£ÔÚ¾­ÀúÁËÂþ³¤Previewºó£¬ÉϸöÔÂ΢ÈíÖÕÓÚ·¢²¼ÁËÆäbeta°æ¡£Ó¦¸Ã˵£¬Í¨¹ýÎÒÇ×Éíʵ¼ù£¬ÎÒÈÏΪÕâ¸ö¿ò¼ÜµÄÉè¼Æ»¹ÊÇÏ൱ÓÅÐãµÄ£¬ÖÁÉÙ´ÓÒ×ÓÃÐÔÀ´Ëµ£¬ASP.NET MVCÒªÓÅÓÚJavaƽ̨ÉϵÄStrutsºÍStr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ