ÔÚASP.NETÖУ¬×Ö·û´®µÄ·Ö¸î¼òµ¥Ê¾Àý
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string str = "123456789";
//string str1 = Eval("str").ToString().Substring(0,3);
//˵Ã÷£ºÏÔÈ»£¬Õâ¸öд·¨ÊÇ´íµÄ£¬ÕâÖ»ÄÜÓÃÓڿؼþ°ó¶¨µÄÉÏÏÂÎÄÖС£
string str1 = str.Substring(0,5);
Response.Write("ÊäÈëÒѾ¼ôÇйýµÄµÄ×Ö·û´®£º"+str1);
}
}
˵Ã÷£ºÕâÊÇÒ»¸öÒ³ÃæµÄÒþ²Ø´úÂë¡£
Ïà¹ØÎĵµ£º
×î½üÔÚÓÃÓû§¿Ø¼þʱ£¬ÒýÓû§¿Ø¼þµÄÒ³ÃæÓÐʱºò»áºÍÓû§¿Ø¼þ½øÐÐÊý¾ÝµÄ½»»¥£¬ÍøÉϺÃÏñºÜ¶àÈ˲»ÖªµÀºÎ»ñÈ¡
д¸öÀý×Ó˵Ã÷Ò»ÏÂ
È¡µÃÓû§¿Ø¼þÀïÃæµÄ¿Ø¼þ²¢½øÐи³Öµ
Óû§¿Ø¼þaspxÒ³´úÂë
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HeadPanel.ascx.cs" Inherits="HeadPanel" %>
& ......
Óû§¿ÉÒÔ´Ó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Ìṩµ ......