473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

3 password in asp.net Login control

Hi everybody there,
I have a special Login page that wants users to enter 3 passwords
rather than a single password. But can't do it with Login control. I
tried following scenarios:

1. Put an Login in the page and set its Visible = False instead put my
own username and 3 password on the form. Then I checked 2nd and 3rd
password seperately and passed username and password to Login control
via its Username and Password properties but couldn't because they was
reaonly! Also there was not any such LOGIN or AUTHENTICATE method.

2. Programming on LoggedIn and other Login events, but couldn't find
any method or way to undo the login process based on my internally
password checking, that means I want to logout that user automaticlly
if 2nd and 3rd password is incorrect.

3. Searched for any non-control (I mean just a class) to do login
process just in my c# code, but I didn't find anything.

So PLEASE help me!
I have preached ASP.NET Membership between my colleages very much.
Don't allow a defeat!

With Thanks:
Afshar Mohebbi

Sep 5 '06 #1
5 1899
So how do you authenticate (or plan to authenticate) three separate strings?
Two of them should be or have to be the user name and password Membership
requires right? And the third would require using your own code and
authentication schema. So authenticate your piece first and after
authenticating on that piece let Membership take over with the other two
pieces. DOn't forget to use SQL Manager to check out the stored procedures
Membership uses for authentication. You can reuse them.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Afshar" <af************@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi everybody there,
I have a special Login page that wants users to enter 3 passwords
rather than a single password. But can't do it with Login control. I
tried following scenarios:

1. Put an Login in the page and set its Visible = False instead put my
own username and 3 password on the form. Then I checked 2nd and 3rd
password seperately and passed username and password to Login control
via its Username and Password properties but couldn't because they was
reaonly! Also there was not any such LOGIN or AUTHENTICATE method.

2. Programming on LoggedIn and other Login events, but couldn't find
any method or way to undo the login process based on my internally
password checking, that means I want to logout that user automaticlly
if 2nd and 3rd password is incorrect.

3. Searched for any non-control (I mean just a class) to do login
process just in my c# code, but I didn't find anything.

So PLEASE help me!
I have preached ASP.NET Membership between my colleages very much.
Don't allow a defeat!

With Thanks:
Afshar Mohebbi

Sep 6 '06 #2
Hi clintonG,

But I want a single login BUTTON in a single page, so the user enters
his data and clicks a button just one time in order to backward
compatiblety.
Thanks in Advance:
Afshar

clintonG wrote:
So how do you authenticate (or plan to authenticate) three separate strings?
Two of them should be or have to be the user name and password Membership
requires right? And the third would require using your own code and
authentication schema. So authenticate your piece first and after
authenticating on that piece let Membership take over with the other two
pieces. DOn't forget to use SQL Manager to check out the stored procedures
Membership uses for authentication. You can reuse them.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Afshar" <af************@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi everybody there,
I have a special Login page that wants users to enter 3 passwords
rather than a single password. But can't do it with Login control. I
tried following scenarios:

1. Put an Login in the page and set its Visible = False instead put my
own username and 3 password on the form. Then I checked 2nd and 3rd
password seperately and passed username and password to Login control
via its Username and Password properties but couldn't because they was
reaonly! Also there was not any such LOGIN or AUTHENTICATE method.

2. Programming on LoggedIn and other Login events, but couldn't find
any method or way to undo the login process based on my internally
password checking, that means I want to logout that user automaticlly
if 2nd and 3rd password is incorrect.

3. Searched for any non-control (I mean just a class) to do login
process just in my c# code, but I didn't find anything.

So PLEASE help me!
I have preached ASP.NET Membership between my colleages very much.
Don't allow a defeat!

With Thanks:
Afshar Mohebbi
Sep 6 '06 #3
Yea, so?

Everything you need to do can be done in the Button's click event handler.
You might have to write and invoke a class or two with some unique methods
but sometimes that's what we have to do. Especially when somebody comes up
with some goofy authentication scheme. I know this wasn't your idea right?
;-)

So what's the real problem here? I mean you didn't answer some questions I
had so I won't be much help without explicit facts. After all, maybe my
first idea wasn't such a good idea after all!

<%= Clinton Gallagher

"Afshar" <af************@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi clintonG,

But I want a single login BUTTON in a single page, so the user enters
his data and clicks a button just one time in order to backward
compatiblety.
Thanks in Advance:
Afshar

clintonG wrote:
So how do you authenticate (or plan to authenticate) three separate
strings?
Two of them should be or have to be the user name and password Membership
requires right? And the third would require using your own code and
authentication schema. So authenticate your piece first and after
authenticating on that piece let Membership take over with the other two
pieces. DOn't forget to use SQL Manager to check out the stored procedures
Membership uses for authentication. You can reuse them.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Afshar" <af************@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi everybody there,
I have a special Login page that wants users to enter 3 passwords
rather than a single password. But can't do it with Login control. I
tried following scenarios:

1. Put an Login in the page and set its Visible = False instead put my
own username and 3 password on the form. Then I checked 2nd and 3rd
password seperately and passed username and password to Login control
via its Username and Password properties but couldn't because they was
reaonly! Also there was not any such LOGIN or AUTHENTICATE method.

2. Programming on LoggedIn and other Login events, but couldn't find
any method or way to undo the login process based on my internally
password checking, that means I want to logout that user automaticlly
if 2nd and 3rd password is incorrect.

3. Searched for any non-control (I mean just a class) to do login
process just in my c# code, but I didn't find anything.

So PLEASE help me!
I have preached ASP.NET Membership between my colleages very much.
Don't allow a defeat!

With Thanks:
Afshar Mohebbi

Sep 6 '06 #4
Dear Clinton,
Please let go back to your first guidance:

:::And the third would require using your own code and
:::authentication schema. So authenticate your piece first and after
:::authenticating on that piece let Membership take over with the other
two
:::pieces.

I can handle my third string authentication in my own code, but how let
Membership take over the

other two pieces? I'm just searching for a method or function call to
do it. Is there any specific

method or class for it? I couldn't find any method for this in Login
Control.

Any help would be appreciated
Afshar Mohebbi


clintonG wrote:
Yea, so?

Everything you need to do can be done in the Button's click event handler.
You might have to write and invoke a class or two with some unique methods
but sometimes that's what we have to do. Especially when somebody comes up
with some goofy authentication scheme. I know this wasn't your idea right?
;-)

So what's the real problem here? I mean you didn't answer some questions I
had so I won't be much help without explicit facts. After all, maybe my
first idea wasn't such a good idea after all!

<%= Clinton Gallagher

"Afshar" <af************@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi clintonG,

But I want a single login BUTTON in a single page, so the user enters
his data and clicks a button just one time in order to backward
compatiblety.
Thanks in Advance:
Afshar

clintonG wrote:
So how do you authenticate (or plan to authenticate) three separate
strings?
Two of them should be or have to be the user name and password Membership
requires right? And the third would require using your own code and
authentication schema. So authenticate your piece first and after
authenticating on that piece let Membership take over with the other two
pieces. DOn't forget to use SQL Manager to check out the stored procedures
Membership uses for authentication. You can reuse them.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Afshar" <af************@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi everybody there,
I have a special Login page that wants users to enter 3 passwords
rather than a single password. But can't do it with Login control. I
tried following scenarios:
>
1. Put an Login in the page and set its Visible = False instead putmy
own username and 3 password on the form. Then I checked 2nd and 3rd
password seperately and passed username and password to Login control
via its Username and Password properties but couldn't because they was
reaonly! Also there was not any such LOGIN or AUTHENTICATE method.
>
2. Programming on LoggedIn and other Login events, but couldn't find
any method or way to undo the login process based on my internally
password checking, that means I want to logout that user automaticlly
if 2nd and 3rd password is incorrect.
>
3. Searched for any non-control (I mean just a class) to do login
process just in my c# code, but I didn't find anything.
>
So PLEASE help me!
I have preached ASP.NET Membership between my colleages very much.
Don't allow a defeat!
>
With Thanks:
Afshar Mohebbi
>
Sep 8 '06 #5
Dear Clinton,
Please let go back to your first guidance:

:::And the third would require using your own code and
:::authentication schema. So authenticate your piece first and after
:::authenticating on that piece let Membership take over with the other
two
:::pieces.

I can handle my third string authentication in my own code, but how let
Membership take over the

other two pieces? I'm just searching for a method or function call to
do it. Is there any specific

method or class for it? I couldn't find any method for this in Login
Control.

Any help would be appreciated
Afshar Mohebbi


clintonG wrote:
Yea, so?

Everything you need to do can be done in the Button's click event handler.
You might have to write and invoke a class or two with some unique methods
but sometimes that's what we have to do. Especially when somebody comes up
with some goofy authentication scheme. I know this wasn't your idea right?
;-)

So what's the real problem here? I mean you didn't answer some questions I
had so I won't be much help without explicit facts. After all, maybe my
first idea wasn't such a good idea after all!

<%= Clinton Gallagher

"Afshar" <af************@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi clintonG,

But I want a single login BUTTON in a single page, so the user enters
his data and clicks a button just one time in order to backward
compatiblety.
Thanks in Advance:
Afshar

clintonG wrote:
So how do you authenticate (or plan to authenticate) three separate
strings?
Two of them should be or have to be the user name and password Membership
requires right? And the third would require using your own code and
authentication schema. So authenticate your piece first and after
authenticating on that piece let Membership take over with the other two
pieces. DOn't forget to use SQL Manager to check out the stored procedures
Membership uses for authentication. You can reuse them.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"Afshar" <af************@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi everybody there,
I have a special Login page that wants users to enter 3 passwords
rather than a single password. But can't do it with Login control. I
tried following scenarios:
>
1. Put an Login in the page and set its Visible = False instead putmy
own username and 3 password on the form. Then I checked 2nd and 3rd
password seperately and passed username and password to Login control
via its Username and Password properties but couldn't because they was
reaonly! Also there was not any such LOGIN or AUTHENTICATE method.
>
2. Programming on LoggedIn and other Login events, but couldn't find
any method or way to undo the login process based on my internally
password checking, that means I want to logout that user automaticlly
if 2nd and 3rd password is incorrect.
>
3. Searched for any non-control (I mean just a class) to do login
process just in my c# code, but I didn't find anything.
>
So PLEASE help me!
I have preached ASP.NET Membership between my colleages very much.
Don't allow a defeat!
>
With Thanks:
Afshar Mohebbi
>
Sep 8 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Whitey | last post by:
I have a password secured database. After the password is entered the user has a form that I created that allows them to search the database and retrieve information. The problem is that the...
6
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have...
0
by: Mark A. Sam | last post by:
Hello, I am learning to use Visual Web Developer 2005 Express Edition. I am using a Gridview control with a remote SQL Database connection. Whenever I configure the data source I am asked for...
0
by: ad | last post by:
I use login controls in my web application, and have web.config as below: <forms name="HealthCookie" loginUrl="Login.aspx" defaultUrl="Home.aspx" protection="Validation" > If the user enter wrong...
2
by: J | last post by:
Hello. I apologize if this isn't the appropriate group for this question but I was wondering if it's possible to allow regular windows domain users to change their passwords through an .asp page? ...
4
by: clintonG | last post by:
When the password is hashed and most secure this control mails a new password to anybody that provides an authenticated user name. The previous password can no longer be used to login. The newly...
0
by: Ron | last post by:
Hi, I need to turn off my menu control when a user is in the process of changing there password. I know this can be done because the Login control automatically prevents the rendering of the...
0
by: =?Utf-8?B?YW5vb3A=?= | last post by:
Hello, I am developing a Website in ASP.Net 2.0 with Login Control as a Starting page. I have already implemented Membership for login control. Now I want to know 1. How do I implement unique...
3
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, we've got a strange problem here: We've created an ASP.NET 2.0 web application using Membership.ValidateUser() to manually authenticate users with our website. The problem is: If the...
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
1
isladogs
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...
0
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...
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.