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();
}
Ïà¹ØÎĵµ£º
ÔÚasp.netÒ³ÔËÐУ¬´ËÒ³½«¾ÀúÒ»¸öÉúÃüÖÜÆÚ£¬ÔÚÉúÃüÖÜÆÚÖн«Ö´ÐÐһϵÁд¦Àí²½Ö裬ÕâЩ²½Öè°üÀ¨£º³õʼ»¯£¬ÊµÀý»¯¿Ø¼þ£¬»¹ÔºÍά»¤×´Ì¬£¬ÔËÐÐʼþ´¦Àí³ÌÐò´úÂëÒÔ¼°½øÐгÊÏÖ£»
Ò»°ãÀ´ËµÒ³Òª¾ÀúÒÔϵĸ÷¸ö½×¶Î£º
£¨1£©£ºÒ³ÇëÇó£ºÒ³ÇëÇó·¢ÉúÔÚÒ³ÉúÃüÖÜÆÚ¿ªÊ¼Ö®Ç°£¬Óû§ÇëÇóҳʱ£¬asp.net½«È·¶¨ÊÇ·ñÐèÒª·ÖÎöºÍ±àÒëÒ³£¨´Ó¶ø¿ªÊ¼Ò ......
±¾ÎÄͨ¹ýÒ»¶ÎÍêÕûµÄ´úÂëÏò¶ÁÕß½éÉܸ´ºÏ×Ô¶¨Òå¿Ø¼þµÄÖÆ×÷£¬°üÀ¨£º×Ô¶¨ÒåÊôÐÔ¡¢Ê¼þ´¦Àí¡¢¿Ø¼þ¼äÊý¾Ý´«µÝµÈ·½ÃæµÄ¼¼Êõ¡£
ÒÔÏÂÊÇÒ»¸öµÇ½¿òµÄ´úÂ룬°üÀ¨£ºÓû§ÃûÊäÈëTextBox¡¢ÃÜÂëÊäÈëTextBox¡¢Ìá½»Button¡¢ÖØÖÃButtonÒÔ¼°³ÐÔØÒÔÉÏËÄÏîµÄPanel¡£¿Ø¼þÀàÃûΪLoginCtrl¡£
£¨Àý³ÌʹÓÃC#£©
using System;
using System.Web.UI;
......
FCKeditorÏà¹Ø×ÊÁϼò½é£º
¹Ù·½ÍøÕ¾http://www.fckeditor.net/
¹Ù·½Îĵµhttp://wiki.fckeditor.net/
ÏÂÔØµØÖ·http://www.fckeditor.net/download/default.html
¹Ù·½ÑÝʾhttp://www.fckeditor.net/demo/default.html
FCKEditor asp.netÉèÖÃ
ÏÂÔØ£ºhttp://www.fckeditor.net
£¨ÒªÏÂÔØFCKeditor2.4.2.zipºÍFCKeditor.NET ......
ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
C# codeprivate void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# codeprivate void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script lan ......