Click here to Skip to main content
15,921,156 members
Home / Discussions / C#
   

C#

 
GeneralRe: Image on specific tree node Pin
KaurGurpreet1-Jun-10 21:19
KaurGurpreet1-Jun-10 21:19 
GeneralRe: Image on specific tree node Pin
Mycroft Holmes1-Jun-10 22:52
professionalMycroft Holmes1-Jun-10 22:52 
GeneralRe: Image on specific tree node Pin
Pete O'Hanlon1-Jun-10 23:00
mvePete O'Hanlon1-Jun-10 23:00 
QuestionInstalling web service on windows 2008 Pin
KaurGurpreet1-Jun-10 19:02
KaurGurpreet1-Jun-10 19:02 
QuestionSecuring a web method Pin
KaurGurpreet1-Jun-10 19:00
KaurGurpreet1-Jun-10 19:00 
AnswerRe: Securing a web method Pin
SarahMcM1-Jun-10 20:36
SarahMcM1-Jun-10 20:36 
GeneralRe: Securing a web method Pin
KaurGurpreet1-Jun-10 21:20
KaurGurpreet1-Jun-10 21:20 
GeneralRe: Securing a web method Pin
SarahMcM2-Jun-10 11:46
SarahMcM2-Jun-10 11:46 
Well, not really because I don't know how you want to secure it.

In my webmethods I have eg

if (isUserAuthorised(this.User.Identity.Name))
{
   //do stuff in the web method

} else
{
  //return that they're unauthorised
}


The isUserAuthorised method takes a string that is the user name and you can then do whatever you want to determine if they are infact allowed access. It depends on how you secure things. If you use AD groups then check whether the user is in the appropriate group (google for DirectoryEntry - there should be loads of examples out there and you'd be looking for something with objGroup.Invoke("IsMember" ...) I can't remember the exact syntax). If you have some database that says whether they're allowed in then call a stored procedure.
QuestionMessage Removed Pin
1-Jun-10 18:22
amaankhan1-Jun-10 18:22 
AnswerRe: help Pin
Mycroft Holmes1-Jun-10 19:34
professionalMycroft Holmes1-Jun-10 19:34 
GeneralRe: help Pin
amaankhan1-Jun-10 19:46
amaankhan1-Jun-10 19:46 
AnswerRe: help Pin
Abhinav S1-Jun-10 19:35
Abhinav S1-Jun-10 19:35 
QuestionRemove Item from listbox Pin
future38391-Jun-10 17:55
future38391-Jun-10 17:55 
Questionexe not executed Pin
prithaa1-Jun-10 17:44
prithaa1-Jun-10 17:44 
AnswerRe: exe not executed Pin
AspDotNetDev1-Jun-10 17:50
protectorAspDotNetDev1-Jun-10 17:50 
AnswerRe: exe not executed Pin
amaankhan1-Jun-10 18:09
amaankhan1-Jun-10 18:09 
GeneralRe: exe not executed Pin
prithaa1-Jun-10 19:02
prithaa1-Jun-10 19:02 
GeneralRe: exe not executed Pin
amaankhan1-Jun-10 19:12
amaankhan1-Jun-10 19:12 
GeneralRe: exe not executed Pin
prithaa1-Jun-10 19:16
prithaa1-Jun-10 19:16 
AnswerRe: exe not executed Pin
Luc Pattyn2-Jun-10 1:53
sitebuilderLuc Pattyn2-Jun-10 1:53 
GeneralRe: exe not executed Pin
prithaa2-Jun-10 20:52
prithaa2-Jun-10 20:52 
GeneralRe: exe not executed Pin
Luc Pattyn3-Jun-10 1:36
sitebuilderLuc Pattyn3-Jun-10 1:36 
GeneralRe: exe not executed Pin
prithaa3-Jun-10 1:38
prithaa3-Jun-10 1:38 
GeneralRe: exe not executed Pin
Luc Pattyn3-Jun-10 1:40
sitebuilderLuc Pattyn3-Jun-10 1:40 
QuestionCalling COM fails in C# destructor Pin
cmartono1-Jun-10 16:41
cmartono1-Jun-10 16:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.