OK, I read and read again information on using the logon control, 'custom
providers' but none are really helping me out with creating a provider to
go against my database to validate the users logging into my web app. What
happens when a user logs into my site is, 8 queries are executed, 1 verfies
the user, and the others get data pertaining to that users id, so drop downs
are populated for that user, etc., So is it possible to use the 2.0
providers to do this same thing, and can someone show me some code of a
provider going against a SQL database (not the membership one 2.0 creates)
your own DB, to validate users loggging into your web app?
going nuts 2 1218
My rudimentary understanding is that the membership provider is for
authentication
updates to info/security/roles etc http://msdn2.microsoft.com/en-US/library/f1kyba5e.aspx
In your case, I think your login screen needs to use the custom provider..
and then REDIRECT to the next page,
where (because you're verified) you run your routines.
The login screen should be nothing but authentication,, the redirect happens
after you are verified, and the next page does your custom needs.
I'm not sure what db youre using, but .....
If you're running 8 seperate queries, my thoughts would be to put these into
1 stored procedure and populate 1 strongly typed DataSet, with 8 tables in
it.
That way, you're only hitting the db twice.
Once on the verification/login screen.
then REDIRECT
then once to get the 8tables of info.
I think you're barking up the wrong tree trying to have this functionality
merged.
...
"John" <me@me.com> wrote in message
news:u6**************@TK2MSFTNGP02.phx.gbl... OK, I read and read again information on using the logon control, 'custom providers' but none are really helping me out with creating a provider to go against my database to validate the users logging into my web app. What happens when a user logs into my site is, 8 queries are executed, 1
verfies the user, and the others get data pertaining to that users id, so drop
downs are populated for that user, etc., So is it possible to use the 2.0 providers to do this same thing, and can someone show me some code of a provider going against a SQL database (not the membership one 2.0 creates) your own DB, to validate users loggging into your web app?
going nuts
well, the thing is that I took the existing app from an former developer and
I'm migrating it to 05. The current login screen in asp.net 1.1 is callking
the 8 queries to populate dropdowns, grids, etc on the next page once the
user is verfied. What I'm doing is, I created my login screen and validating
the user only if the user exists in the DB then doing a redirect to the next
page, then doing my processing there.
When I stepped through the current app I noticed what he's doing just on the
login screen alone. He's validatiing the user, then taken the userid and
running 7 more queries to pull data and put into a user object then passing
to queries to load the drop downs, etc.
After thinking about I might be doing it correctly on my version of the
login screen.
because I'm just validating via forms auth.
"sloan" wrote: My rudimentary understanding is that the membership provider is for authentication updates to info/security/roles etc
http://msdn2.microsoft.com/en-US/library/f1kyba5e.aspx
In your case, I think your login screen needs to use the custom provider.. and then REDIRECT to the next page, where (because you're verified) you run your routines. The login screen should be nothing but authentication,, the redirect happens after you are verified, and the next page does your custom needs.
I'm not sure what db youre using, but ..... If you're running 8 seperate queries, my thoughts would be to put these into 1 stored procedure and populate 1 strongly typed DataSet, with 8 tables in it. That way, you're only hitting the db twice.
Once on the verification/login screen. then REDIRECT then once to get the 8tables of info.
I think you're barking up the wrong tree trying to have this functionality merged.
...
"John" <me@me.com> wrote in message news:u6**************@TK2MSFTNGP02.phx.gbl... OK, I read and read again information on using the logon control, 'custom providers' but none are really helping me out with creating a provider to go against my database to validate the users logging into my web app. What happens when a user logs into my site is, 8 queries are executed, 1 verfies the user, and the others get data pertaining to that users id, so drop downs are populated for that user, etc., So is it possible to use the 2.0 providers to do this same thing, and can someone show me some code of a provider going against a SQL database (not the membership one 2.0 creates) your own DB, to validate users loggging into your web app?
going nuts
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Morgan |
last post by:
Sorry for cross post, forgot to include aspnet in orinal...
Thanks in advance for any assistance.
I'm in the process of implementing custom RoleProvider & Membership Provider
objects and have...
|
by: John |
last post by:
Hi
I was working fine with create user wizard and the default membership
provider. I have now customised the membership provider as per attached
web.config. The create user wizard picks up the...
|
by: ad |
last post by:
I have create a custom membership provider.
The common usage of custom membership is set it as default Membership
Provider win web.config, and use login controls with it.
How can I use custom...
|
by: Paul Keegstra |
last post by:
Hi,
I am currently working on an asp.net 2.0 web site that is a replacement of a
classic asp web site. The current web site uses a Commerce Server 2002
database for storing user information. ...
|
by: Balaji |
last post by:
Hi All,
Can I use more than one membership provider for a given website? I
understand only one of them could be default one. If yes, then how to
programmatically access the other membership...
|
by: ryan.mclean |
last post by:
Hello everyone,
I am wondering, can the membership provider be changed at runtime?
Perhaps the connectionStringName?
I would like to use a different database based on the server the site
is...
|
by: thomas |
last post by:
Hello All,
How to change the default Membership Provider during the runtime?
I know I can reference any provider I want, e.g.: provider =
Membership.Providers
but the question is how to...
|
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= |
last post by:
I have been having some trouble with implementing a custom Membership
Provider. We have a custom data store and business logic that pulls user
information. I need some level of functionality...
|
by: Ben |
last post by:
Hi,
When an anonymous user has created an new account (with the CreateUserWizard
control), i want to let asp.net generate a password and to send it to the
address of the email provided by the...
|
by: Jonathan Wood |
last post by:
Although this will be a challenge at my level of ASP.NET knowledge, I'm
thinking I should implement my own membership provider class.
Looking over the methods I must implement, a number of...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |