Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,
I Have below method method i want to pass parameters , how can i pass parametrs can u guide me or snippets

C#
[OperationContract]
[WebInvoke(UriTemplate = "UpdateBook/{id}/{name}")]
void UpdateBook(string id, string name);
Posted
v2
Comments
Jameel VM 3-Oct-13 11:49am    
from where you call the service?Javascript?
kingsa 3-Oct-13 21:56pm    
Thanks for reply ,
Using Uri in .aspx.cs file i am calling that service and also even i checking in browser also its error like method not allowed

1 solution

Go through this link
http://pranayamr.blogspot.ca/2011/03/rest.html[^]
Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900