Im so pleased...
-
... that I answer about 500 odd questions on the tech forums here for every one I ask. It makes me so happy when the one question I ask is swamped by "How to I read a textbox in javascript" and "how do I deploy a website". Oh well, I better go off to a decent asp.net forum, where my question might actually see the first page for more than a few hours. Anyone know of a decent one?
-
... that I answer about 500 odd questions on the tech forums here for every one I ask. It makes me so happy when the one question I ask is swamped by "How to I read a textbox in javascript" and "how do I deploy a website". Oh well, I better go off to a decent asp.net forum, where my question might actually see the first page for more than a few hours. Anyone know of a decent one?
I did actually have a look at your question and did some research but couldnt find a way of specifying which roleprovider to use. I'm wondering if there is a different way to get the current username other then: HttpContext.Current.User.IsInRole
J4amieC wrote:
"how do I deploy a website".
The deployment post was in fact my question and was not just related to how to deploy( programming for 2 years has enabled me to learn how to do that) but what different methods there are and which one is the best. This is due to me having a project from YAF and not being able to make a change because the standard ways I edit files and save them to the server is not working.
The answers posted by me are suggestions only and cannot be used in anyway against me.
-
I did actually have a look at your question and did some research but couldnt find a way of specifying which roleprovider to use. I'm wondering if there is a different way to get the current username other then: HttpContext.Current.User.IsInRole
J4amieC wrote:
"how do I deploy a website".
The deployment post was in fact my question and was not just related to how to deploy( programming for 2 years has enabled me to learn how to do that) but what different methods there are and which one is the best. This is due to me having a project from YAF and not being able to make a change because the standard ways I edit files and save them to the server is not working.
The answers posted by me are suggestions only and cannot be used in anyway against me.
-
... that I answer about 500 odd questions on the tech forums here for every one I ask. It makes me so happy when the one question I ask is swamped by "How to I read a textbox in javascript" and "how do I deploy a website". Oh well, I better go off to a decent asp.net forum, where my question might actually see the first page for more than a few hours. Anyone know of a decent one?
Errrm - your question is still on the first page (as I post this). I've posted a possible answer to it, and so has leppie.
Deja View - the feeling that you've seen this post before.
-
.netman wrote:
I'm wondering if there is a different way to get the current username other then: HttpContext.Current.User.IsInRole
Roles.Providers[providerName].IsUserInRole(username,roleName)
Thats not the issue though.Ah I assumed that was what you meant considering your post(quote below). If it was just the username you wanted then you might be able to get it another way. Im guessing you want to call other aspects of RoleProvider. "My problem arises when I try to use a call to HttpContext.Current.User.IsInRole(string). This always uses the default RoleProvider so if you've logged in as an ExternalUser its using the InternalRoleProvider (default) rather than ExternalRoleProvider. This does make sense as there appears no way to associate a membership provider to a RoleProvider. Im hoping im wrong there but I dont think there is."
The answers posted by me are suggestions only and cannot be used in anyway against me.