Click here to Skip to main content
15,916,288 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPrice of making WEB PORTAL Pin
Dragoslav Zaric6-Mar-07 8:36
Dragoslav Zaric6-Mar-07 8:36 
AnswerRe: Price of making WEB PORTAL Pin
Vasudevan Deepak Kumar6-Mar-07 9:16
Vasudevan Deepak Kumar6-Mar-07 9:16 
AnswerRe: Price of making WEB PORTAL Pin
Jasmine25016-Mar-07 10:39
Jasmine25016-Mar-07 10:39 
QuestionWidth Problem Pin
Mr Emash6-Mar-07 6:51
Mr Emash6-Mar-07 6:51 
AnswerRe: Width Problem Pin
Vasudevan Deepak Kumar6-Mar-07 9:16
Vasudevan Deepak Kumar6-Mar-07 9:16 
GeneralRe: Width Problem Pin
Mr Emash6-Mar-07 12:50
Mr Emash6-Mar-07 12:50 
GeneralRe: Width Problem Pin
N a v a n e e t h6-Mar-07 18:28
N a v a n e e t h6-Mar-07 18:28 
QuestionCreating Custom Providers Pin
Skoder6-Mar-07 6:50
Skoder6-Mar-07 6:50 
Hi,

I am trying to create my own custom providers.
I am using the Microsoft SQL providers as refference.

What i want to do is to make a set of providers which works with my own database schema.
Key points to my changes is that GUID will be replaced with an incremental Int for Primary key / Id, and i want my code to be based on the id fields instead of a username (which is currently how it works).

I have read the documentation for the Membership and Profile Providers.
In the Sql Profile provider from Microsoft the GetPropertyValues and SetPropertyValues methods are the central part, they both have an Input parameter of type SettingsContext which contains Username (username or userId according to documentation) and IsAuthenticated.
How do I make it "contain" the UserID instead of Username ?
Is there anyway to control what is in the SettingsContext collection ?
As far as I see it, it will never contain the UserID (or at least i dont know how to make it contain the userid), but probably it will contain the random generated username for an anonymous user. But please let me know how to make it use the userId as mentioned in the documentation.

Will I ever be able to make this work or am i better of creating something to "stand-alone" which isnt intended to be used in the provider model ?

If it is not recommended to create new providers, can anyone recommend an approach to creating my own "framework" for controlling users/login and such.

I was thinking of creating something very similar.
Is there some way I can register a class (maybe in the webconfig) which will run when asp.net is running, like etc. the Profile provider soo i dont have to create a new instance on every page load (and get connection string and such, but which is loaded first time it starts (asp.net/iis) and then ready for use/access all the time).
Is there any security issues i will need to think about ?

I was wondering how the build in Membership system stores if a user is logged in or not. Is the username or userid just saved in a session variable ?

I am also thinking about if i make my own framework is there any way to make it work with the existing panels or will i have to create new panels ? (for an example to determine content to show the user if the user is logged-in or not and if the user if one role or another), and what about the way you can control access to your website through the webconfig by specifying which roles have access. Is it possible to make my own "framework" work together with this ?


Hope someone can help


Best regards

Martin From

AnswerRe: Creating Custom Providers Pin
Jasmine25016-Mar-07 15:23
Jasmine25016-Mar-07 15:23 
QuestionRef Javascript File Pin
tadhg886-Mar-07 6:33
tadhg886-Mar-07 6:33 
AnswerRe: Ref Javascript File Pin
kubben6-Mar-07 7:10
kubben6-Mar-07 7:10 
AnswerRe: Ref Javascript File Pin
ToddHileHoffer6-Mar-07 8:20
ToddHileHoffer6-Mar-07 8:20 
GeneralRe: Ref Javascript File Pin
kubben6-Mar-07 9:58
kubben6-Mar-07 9:58 
GeneralRe: Ref Javascript File Pin
tadhg886-Mar-07 23:57
tadhg886-Mar-07 23:57 
GeneralRe: Ref Javascript File Pin
ToddHileHoffer8-Mar-07 3:26
ToddHileHoffer8-Mar-07 3:26 
GeneralRe: Ref Javascript File Pin
tadhg888-Mar-07 5:27
tadhg888-Mar-07 5:27 
QuestionWeb Page Size Pin
Tomic6-Mar-07 5:47
Tomic6-Mar-07 5:47 
AnswerRe: Web Page Size Pin
badgrs6-Mar-07 6:33
badgrs6-Mar-07 6:33 
AnswerRe: Web Page Size Pin
Vasudevan Deepak Kumar6-Mar-07 9:17
Vasudevan Deepak Kumar6-Mar-07 9:17 
QuestionDisplaying HTML Pin
N a v a n e e t h6-Mar-07 4:07
N a v a n e e t h6-Mar-07 4:07 
AnswerRe: Displaying HTML Pin
badgrs6-Mar-07 4:11
badgrs6-Mar-07 4:11 
AnswerRe: Displaying HTML Pin
Vasudevan Deepak Kumar6-Mar-07 9:18
Vasudevan Deepak Kumar6-Mar-07 9:18 
AnswerRe: Displaying HTML Pin
Jasmine25016-Mar-07 10:44
Jasmine25016-Mar-07 10:44 
QuestionPrint dialog without postback Pin
digsy_6-Mar-07 3:43
digsy_6-Mar-07 3:43 
AnswerRe: Print dialog without postback Pin
badgrs6-Mar-07 4:09
badgrs6-Mar-07 4:09 

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.