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

WCFÖеķþÎñºÍASP.NET AJAXÖеÄWebService

WCFµÄ¼Ü¹¹£ºusing System.ServiceModel;
ÆõÔ¼:Contract
[ServiceContract]
public partial interface IContract
{
        [OperationContract]
        string DocumentWebHostUrl();
}
·þÎñ£ºService
[ServiceBehavior(IncludeExceptionDetailInFaults = true, InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Multiple)]
public partial class ServiceBusiness : IContract
{
}
´úÀí£ºProxy
public partial class Proxy : ClientBase<IContract>, IContract, IDisposable
    {
        public Proxy()
            : base()
        {
        }
        public void EndSession(Guid sessionID)
        {
            base.Channel.EndSession(sessionID);
        }
    }
ASP.NET AJAXÖеÄWebService
}
 using System.Web.Script.Services;
 [WebService(Namespace = "http://tempuri.org/")]
 [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class SayHelloService : System.Web.Services.WebService
{
    public SayHelloService() { }
    [WebMethod]
    public string SayHello()
   {
        Hello myHello = new Hello();
        return myHello.SayHello();
   }


Ïà¹ØÎĵµ£º

40ÌõASP.NET¿ª·¢Tip

2010-01-25 14:24
40ÌõASP.NET¿ª·¢Tip
×÷Õߣº÷è÷ë   À´Ô´£º²©¿ÍÔ°   ·¢²¼Ê±¼ä£º2010-01-21 13:16   ÔĶÁ£º287 ´Î  Ô­ÎÄÁ´½Ó   [ÊÕ²Ø]  
1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Tran ......

ASP.NET³£ÓÃÓï¾ä

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ò
Response.Write(" <script lang ......

ASP.NET 2.0»º´æ¼¼Êõ̽ÌÖ

±¾ÎĽéÉÜͨ¹ý»º´æÀ´Ìá¸ßÍøÒ³µÄÖ´ÐÐЧÂÊ¡£
¡¡¡¡1.¡¡¡¡¡¡¡¡¡¡¡¡ ASP.NET Output Caching
¡¡¡¡µ±Ò»¸öÍøҳƵ·±±»·ÃÎʵÄʱºò£¬ÎÒÃÇ¿ÉÒÔͨ¹ý°ÑÕû¸öÍøÒ³»º´æÀ´Ìá¸ßÖ´ÐÐЧÂÊ¡£ÕâÑù×÷µÄÓŵãÊÇ£¬µ±Óû§ÔٴηÃÎÊÕâ¸öÍøÒ³µÄʱºò£¬±»¸ñʽ»¯ºÃµÄHTML»á±»Ö±½ÓËÍÏÔ¡£
¡¡¡¡ÎªÊ²Ã´»á´æÔÚÕâÖÖЧ¹ûÄØ£¿ÎÒÃÇͨ¹ýASP.NETµÄ»ù±¾ÔËÐлúÖÆÀ´½âÊÍÕ ......

26ÖÖÌá¸ßASP.NETÍøÕ¾·ÃÎÊÐÔÄܵÄÓÅ»¯·½·¨

1. Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø£¨Connection Pool£©¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±Õʱ ......

dz̸Asp.NetÄÚ²¿»úÖÆ

dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Ò»)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(¶þ)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Èý)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(ËÄ)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Îå)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Áù)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(Æß)
dz̸ASP.NETµÄÄÚ²¿»úÖÆ(°Ë) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ