Click here to Skip to main content
15,909,051 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionValidation Problem Pin
krishnaveer9-Sep-08 23:11
krishnaveer9-Sep-08 23:11 
AnswerRe: Validation Problem Pin
AhsanS9-Sep-08 23:17
AhsanS9-Sep-08 23:17 
GeneralRe: Validation Problem Pin
krishnaveer10-Sep-08 0:17
krishnaveer10-Sep-08 0:17 
Questioni want to upload/download files from SSH server using SFTP (any .Net Component for free)..... Pin
Shaik Haneef9-Sep-08 23:00
Shaik Haneef9-Sep-08 23:00 
QuestionWeb app with multiple MembershipProvider / RoleProvider Pin
J4amieC9-Sep-08 22:34
J4amieC9-Sep-08 22:34 
AnswerRe: Web app with multiple MembershipProvider / RoleProvider Pin
leppie10-Sep-08 2:14
leppie10-Sep-08 2:14 
GeneralRe: Web app with multiple MembershipProvider / RoleProvider Pin
J4amieC10-Sep-08 3:09
J4amieC10-Sep-08 3:09 
AnswerRe: Web app with multiple MembershipProvider / RoleProvider Pin
Pete O'Hanlon10-Sep-08 2:17
mvePete O'Hanlon10-Sep-08 2:17 
The thing about the provider classes is that you're not just limited to the default implementations, so off the top of my head I would suggest that you add an interface to the membership providers, called (say) IMembershipExtension which you use to implement common functionality on the two providers. Use this to store the role provider that goes with which membership provider. Then, you can use this to call the relevant IsInRole directly (unfortunately, you can't do this using the HttpContext.Current.User.IsInRole - you have to get the user and perform a bit of casting for the role provider).

We do something a bit like this with an extended version of the role provider and it works pretty well.

Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: Web app with multiple MembershipProvider / RoleProvider Pin
J4amieC10-Sep-08 3:12
J4amieC10-Sep-08 3:12 
GeneralRe: Web app with multiple MembershipProvider / RoleProvider Pin
Pete O'Hanlon10-Sep-08 3:53
mvePete O'Hanlon10-Sep-08 3:53 
GeneralRe: Web app with multiple MembershipProvider / RoleProvider Pin
Pete O'Hanlon10-Sep-08 8:27
mvePete O'Hanlon10-Sep-08 8:27 
QuestionError in calculating irr in asp.net and vb.net Pin
devlop9-Sep-08 22:32
devlop9-Sep-08 22:32 
QuestionHow to convert audio/video files to swf? Pin
wajans9-Sep-08 22:08
wajans9-Sep-08 22:08 
AnswerRe: How to convert audio/video files to swf? Pin
AhsanS9-Sep-08 22:59
AhsanS9-Sep-08 22:59 
Questionhow to get all employee ids into array? Pin
shankarcbe9-Sep-08 21:44
shankarcbe9-Sep-08 21:44 
AnswerRe: how to get all employee ids into array? Pin
Gamzun10-Sep-08 0:17
Gamzun10-Sep-08 0:17 
QuestionDicom viewer in dot net Pin
Khawar Abbas19-Sep-08 21:42
Khawar Abbas19-Sep-08 21:42 
Questionupload and download file Pin
niki_nilu9-Sep-08 21:09
niki_nilu9-Sep-08 21:09 
AnswerRe: upload and download file Pin
N a v a n e e t h9-Sep-08 21:11
N a v a n e e t h9-Sep-08 21:11 
GeneralRe: upload and download file Pin
niki_nilu9-Sep-08 21:33
niki_nilu9-Sep-08 21:33 
GeneralRe: upload and download file Pin
AhsanS9-Sep-08 21:37
AhsanS9-Sep-08 21:37 
GeneralRe: upload and download file Pin
N a v a n e e t h9-Sep-08 21:39
N a v a n e e t h9-Sep-08 21:39 
GeneralRe: upload and download file Pin
Manas Bhardwaj9-Sep-08 21:39
professionalManas Bhardwaj9-Sep-08 21:39 
Questionpopup Pin
niki_nilu9-Sep-08 20:46
niki_nilu9-Sep-08 20:46 
AnswerRe: popup Pin
Manas Bhardwaj9-Sep-08 21:18
professionalManas Bhardwaj9-Sep-08 21:18 

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.