Re: Reset Password. Please, need Help. Thank You.




James wrote:
What type of database? If 100% uniqueness and you will NEVER need
duplicates for any reason, you can set that constraint in your database.

I think the type of database is not important in this case.
I am using Asp.Net 2.0 membership.

Anyway, maybe I am wrong. I am using SQL 2005

Yes, of course you can check that, and should...even if you set the
constraint making it impossible to duplicate.

"shapper" <mdmoura@xxxxxxxxx> wrote in message
news:1167420156.711596.22100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

I placed a textbox in a web page where I ask the user for its email.

Now I need to reset its password and get the user profile for the given
email if it exists.

How can I do this?

A side question:

Is it possible to check if there is already a user with a given
email when I am adding a new user to my database using membership?

I want the users emails to be unique. I don't want two users with
the same email.

Thanks,

Miguel


.



Relevant Pages

  • Re: Reset Password. Please, need Help. Thank You.
    ... duplicates for any reason, you can set that constraint in your database. ... I think the type of database is not important in this case. ... I am using Asp.Net 2.0 membership. ... constraint making it impossible to duplicate. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Reset Password. Please, need Help. Thank You.
    ... If 100% uniqueness and you will NEVER need ... duplicates for any reason, you can set that constraint in your database. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Key attributes with list values was Re: What are the differences ...KEY
    ... Jane Harper is married. ... And a constraint that states that single people cannot become divorced. ... database, or users, for that matter, to distinguish between them. ... That's the whole point of keys. ...
    (comp.databases.theory)
  • Re: New to SQL server
    ... [CONSTRAINT constraint_name] ... | [FOREIGN KEY] ... Is the name of the database in which the table is created. ... REFERENCES permission on the type is ...
    (microsoft.public.access.adp.sqlserver)
  • Re: A real world example
    ... Isn't NULL/NOT NULL a multiplicity constraint? ... different in successive database states, ... different in successive universe states, ... surrogate key with inconsistent natural keys. ...
    (comp.databases.theory)