Click here to Skip to main content
15,068,929 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
how can i get role of an user that logged in to a page???please give me it's C# code!
Updated 27-Feb-12 5:40am

1 solution

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

MSDN: Role providers[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
royach 27-Feb-12 12:08pm
dear if i find my answer i never waste your time!!!i am so beginner in membership.whatever thanks for WASTEing your TIME:|
OriginalGriff 27-Feb-12 12:21pm
Remember that nobody gets paid for answering questions.
Remember that nobody gets charged for asking questions.
Remember that we can remember who has wasted our time in the past, and decide not to answer their questions if we so choose.

So perhaps doing your own research, and saving questions for when you actually need help might be a good idea, no?
royach 27-Feb-12 12:39pm
dear i just have a question and i don't know its so sample question!! got it???don't waste your time i think this website just good for selfish people enjoy it!!
Sergey Alexandrovich Kryukov 27-Feb-12 13:42pm
Dear Royach,

Please excuse me, but who do you think is selfish? Griff who just answered your question? May I know why? Just because his opinion on reasonable time management and the actual cost of our free-of-charge help is different from yours?

I'm not really too much disturbed by your overly emotional and offensive behavior, but you should understand: you cannot expect a lot of enthusiasm in helping you. Please also understand that your argument using the fact you are a beginner does not look relevant. If you are a beginner, you are expected to begin, and perhaps not from harsh demands and baseless accusations.

Thank you.
OriginalGriff 27-Feb-12 13:58pm
Very erudite!
Sergey Alexandrovich Kryukov 27-Feb-12 14:03pm
Thank you, Griff. :-)
In fact, I decided to report the case here:

Don't you think it is appropriate?
OriginalGriff 27-Feb-12 14:07pm
I've had worse! :laugh:
Sergey Alexandrovich Kryukov 27-Feb-12 14:24pm
Yes, me too; in couple of cases, it was much worse :-)

It's that one the members created the precedent on the "Spam and Abuse Watch" (most cases are commercial spam), and the OP's account was disabled (yes, that case was probably worse, too). I liked the idea... :-)
Sergey Alexandrovich Kryukov 27-Feb-12 14:00pm
It's answered; my 5.
royach 28-Feb-12 2:50am
im so sorry if u think i had bad reaction.plz excuse me.i think this website need better partition for question that categories level of question to easy medium hard and etc.and then about my question i think the method IsUserInRoles() have a bug and dont help me and becoze of this i asked my question in this site but i wish i never asked and didnt see ur reaction!!!good luck
Pete O'Hanlon 28-Feb-12 6:27am
I appreciate that you feel you are under attack here, but I don't think that was what Griff intended with this answer. Unfortunately it has gone off track quite a bit - no, I don't think your reply was abuse, but I do think that you shouldn't have responded the way you did.

What Griff was pointing out is that it's frequently quicker and easier for you to get an answer by using Google, or whichever search engine you prefer, because then you don't have to wait for an answer. That way, you won't be wasting your time waiting for an answer.

As a gentle hint, if you've got a problem coming up with the term you need to search on, then put this in your question. By doing this, we can also tell you what you should be searching on. Remember, you are unlikely to get your whole answer here, so you can use this to help with further reading.

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