Hi
I have 10 Web methods in a WebService.I need to expose only 5 of them to a particular Client ans rest to another client.How can I do this in asp.net 2.0?? Please advice.
Regards
Sachin Kalia
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Jun 14, 2011, 4:53 AM
But you can control the execution by using adding role based security details in the web method attribute.
[WebMethod]
[PrincipalPermission(SecurityAction.Demand,Name="MuraliLaptop\\Muralidharand")]
To know more about PrincipalPermission ,refer this : http://msdn.microsoft.com/en-us/library/765xy944.aspx
HTH.