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

ASP.NETÖÐ"ίÍÐ"£¨delegate£©µÄʹÓüòµ¥ÊµÀý

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
/// <summary>
/// ÉùÃ÷ίÍÐ
/// </summary>
/// <param name="name"></param>
public delegate void GreetPeopleDelegate(string name);

public partial class Delegate_Default : System.Web.UI.Page
{
public void GreetChinese(string name)
{
Response.Write(name + ",ÄãºÃ£¡");
}
public void GreetAmerican(string name)
{
Response.Write(name + ",how do you do£¡");
}
/// <summary>
/// ͨ¹ýίÍд¦Àí²ÎÊý
/// </summary>
/// <param name="name"></param>
/// <param name="MakeGreeting"></param>
public static void GreetPeople(string name, GreetPeopleDelegate MakeGreeting)
{
MakeGreeting(name);
}
protected void Page_Load(object sender, EventArgs e)
{
GreetPeople("ÕÅsan",GreetChinese);
GreetPeople("Tom", GreetAmerican);
}




Ïà¹ØÎĵµ£º

ASP.net ÉèÖÃĬÈÏ°´Å¥

 public static void SetEnterControl(System.Web.UI.Control Ctrl)
    {
        Page mPage = Ctrl.Page;
        string mScript;
        mScript = @"<script language=""jav ......

ASP.NET 4µ±ÖÐUrl RoutingµÄÖ§Ô®

ASP.NET 4µÄWeb Formsµ±ÖУ¬×îÁîÈ˼¤É͵ģ¬ÔòĪ¹ýÓÚÊÇURL Routing»úÖƵÄÈ«ÃæÖ§³Ö¡£¹ýÈ¥ÔÚASP.NET 3.5 SP1µ±ÖУ¬Web Forms»ò¶à»òÉپͿªÊ¼Ö§³ÖURL Routing»úÖÆ£¬ËüÈÃÎÒÃÇÔÚÍøÖ·µÄ³ÊÏÖÒÔ¼°Ê¹ÓÃÉϸü¼ÓµÄÓе¯ÐÔ¡£
¹ýÈ¥ÎÒÃÇÔÚASP.NETµ±ÖУ¬Ï°¹ßÓÚµ×ÏÂÕâÑùµÄÍøÖ·³ÊÏÖ·½Ê½£º
http://myWebSite/EditProduct.aspx?Id=1
µ«×î½ü¼¸ÄêR ......

asp.netÒ³ÃæÖ®¼ä´«ÖÐÎÄÊÇÂÒÂëµÄ´¦Àí·½·¨

½ñÌìÔÚ×öÒ»¸öÎÞË¢ÐÂÅжϹ«Ë¾Ãû³Æ£¬ÊÇ·ñÖظ´µÄʱºò£¬·¢ÏÖÒ»¸öÎÊÌâ¾ÍÊÇͨ¹ýjavascript´«µ½asp.netÒ³ÃæµÄÖµÊÇÂÒÂë¡£ÒÔǰûÓз¢ÏÖ¡£ÒòΪ ÒÔÇ°×ö²âÊÔʱ£¬¶¼ÊÇÓÃÓ¢ÎÄ×Ö·û½øÐеIJâÊÔ¡£½ñÌìÊäÈ뺺×ֺ󣬷¢ÏÖÓÐÕâÖÖÎÊÌâ¡£¸Ð¾õ¿ÉÄÜÊDZàÂëµÄÎÊÌâ¡£¾ÍÉÏÍø²éÁËһϡ£ÕÒµ½Ò»Ð©·½·¨£¬ÈçÏ£º
1.ÉèÖÃweb.configÎļþ
<system.web>
&l ......

ASP.NETĸ°åµÄÓ¦Óã¨×ª£©

ASP.NETĸ°åµÄÓ¦Óã¨×ª£©
2009Äê11ÔÂ30ÈÕ ÐÇÆÚÒ» ÏÂÎç 01:11
ĸ°æÒ³ÊÇVS2005ÖÐÐÂÒýÈëµÄÒ»¸ö¸ÅÄËüºÜºÃµØʵÏÖ½çÃæÉè¼ÆµÄÄ£¿é»¯£¬²¢ÇÒʵÏÖʵÏÖÁË´úÂëµÄÖØÓá£Ëü¾ÍÏñ»éÉ´Ó°Â¥ÖеĻéÉ´Ä£°å£¬Í¬Ò»¸ö»éÉ´Ä£°å¿ÉÒÔ¸ø²»Í¬µÄÐÂÈËÓã¬Ö»Òª°ÑËûÃǵÄÕÕƬÌùÔÚÒÑÓеĻéÉ´Ä£°å¾Í¿ÉÒÔÐγÉÒ»ÕÅƯÁÁµÄ»éÉ´ÕÕƬ£¬ÕâÑù¿ÉÒÔ´ó´ó¼ò»¯»éÉ´ÒÕÊõÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ