1
Answer

Consuming WebService and WCF from jQuery.

eliza sahoo

eliza sahoo

14y
3.8k
1
If Asp.net Ajax framework is used, web service and WCF service methods are consumed by ScriptManager. For jQuery framework, these services are consumed by following ways.
Example:
Create  Ajax-EnabledWCFService, name it "TimeService.svc".
Put Following code in the TimeService class.
 
 
[OperationContract]
 public string GetTime()
 {
  return "<B>" + "Current Server Time : " + DateTime.Now.ToLocalTime() + "</B>" ;
 }

Answers (1)