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
Ïà¹ØÎĵµ£º
Óû§¿ÉÒÔ´Óhttp://logging.apache.org/log4net/ÏÂÔØlog4netµÄÔ´´úÂë¡£½âѹÈí¼þ°üºó£¬ÔÚ½âѹµÄsrcĿ¼Ï½«log4net.slnÔØÈëVisual Studio .NET£¬±àÒëºó¿ÉÒԵõ½log4net.dll¡£Óû§ÒªÔÚ×Ô¼ºµÄ³ÌÐòÀï¼ÓÈëÈÕÖ¾¹¦ÄÜ£¬Ö»Ð轫log4net.dllÒýÈ빤³Ì¼´¿É.
web.config ÖеÄÅäÖãº
<section name="log4net" type="log4net.Config.Log ......
Ê×ÏȽ¨Á¢¿Ø¼þGridView1£¬×¢ÒâàÞ
Ò³ÃæEnableEventValidation="false"±ØÐëµÄ¡£
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" AutoGenerateColumns="false" runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Panel ID="P ......
²¿ÃÅÒª×öÒ»¸öÍøÕ¾£¬ÎÒÒÔǰÓõÄÊÇphp»òasp×öµÄ£¬Õâ»ØÏë¸ÄÓÃasp.net×ö£¬Ö÷Òª»ùÓÚÁ½µã¿¼ÂÇ£¬µÚÒ»£ºÏëͨ¹ýasp.netѧϰc#¼°Æä.net¿ò¼Ü¡£µÚ¶þ£º×Ô¼ºÓÖÏë͵ÀÁ£¬²»Ïë´ÓÍ·¿ªÊ¼×öÍøÕ¾£¬ÓÚÊǾÍÏëÓÿªÔ´µÄnetcmsÀ´¸Ä¸Ä¡£ÓÚÊÇÓÐÁËÎÒµÄϵÁÐÎÄÕ¡£¸ù¾ÝÎÒµÄѧϰ½ø¶ÈÎÒ»áÿÌì¸üУ¬ÇëÅóÓÑÃǹØ×¢¡£ ......
[תÌùÒ»]
ʹÓÃASP.NET MVC¿ò¼Ü£¬´´½¨Ä¬ÈÏÏîÄ¿£¬µÚÒ»Ö±¹Û¸Ð¾õ¾ÍÊǵØÖ·¶¼ÊÇRewrite¹ýµÄ¡£¶ÔÔ´ÂëºÍÅäÖÃÎļþÉÔ¼Ó·ÖÎö²»ÄÑ¿´³ö£¬MVCʹÓÃÁËhttpModulesÀ´À¹½ØµØÖ·ÇëÇ󣬾ßÌåÓõ½ÁËSystem.Web.RoutingÀà¿â£¨MVC2ÖУ¬MVC1ÔõôÓõÄÍü¼ÇÁË¡££©¶øÕⲿ·ÖÀà¿â±»°ü×°ÔÚ.NET Framework3.5 SP1ÖУ¬MVC2ÐèÒªSP1Ö§³ÖÒ²¾ÍÀíËùµ±È»ÁË¡£SP1Ìṩµ ......