I created an .asmx web service which i call via Ajax. i used the following code
Node iLike = Node.GetCurrent().Parent as Node;
Property Subject = iLike.GetProperty("emailToAdminSubject") as Property;
Property BodyText = iLike.GetProperty("fbEmailToAdmin") as Property;
but Node.GetCurrent() returning a null. is there any way to get current node in an asmx Web service ?
Node.GetCurrent() won't work in the context of a web service. (See this forum topic.) You could pass the current node's Id to the web service with your ajax call and then use...
Node iLike = new Node(id).Parent;
...from there.