473,385 Members | 1,487 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,385 software developers and data experts.

how to change email defined when creating account?

Dan
Hi,

I use the <asp:CreateUserWizardcontrol for creating memberusers. In that
windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?

Thanks
Dan
Feb 13 '07 #1
5 2197
Dan,

My guess is you are using the SqlRoleProvider for storing your user
information? One thing you could do is have a page that directly edits this
database.

Also, you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task.

Shaun McDonnell
"Dan" <d@d.dwrote in message news:uD**************@TK2MSFTNGP05.phx.gbl...
Hi,

I use the <asp:CreateUserWizardcontrol for creating memberusers. In
that windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?

Thanks
Dan
Feb 13 '07 #2
Dan
Thanks for replying.
Yes i use the sqlserver express as database for users and memberships. It's
the easiest way i suppose. The mdf file is created automatically.
To be honest, i don't understand very good what you mean with:
"you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task".
Could you give some hints how to perform that?
Thanks again.
"Shaun C McDonnell" <sm**************@eisoft.comschreef in bericht
news:CF**********************************@microsof t.com...
Dan,

My guess is you are using the SqlRoleProvider for storing your user
information? One thing you could do is have a page that directly edits
this
database.

Also, you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task.

Shaun McDonnell
"Dan" <d@d.dwrote in message
news:uD**************@TK2MSFTNGP05.phx.gbl...
>Hi,

I use the <asp:CreateUserWizardcontrol for creating memberusers. In
that windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?

Thanks
Dan

Feb 13 '07 #3
Dan,

Here is an example of what I am talking about. Check out the methods you
can call within the Membership object. There is a method called
'ChangePassword'

By creating your own MembershipProvider you could override this method and
have a custom task performed when a user attempts to change its password.
Here is an example:

public class DansMembershipProvider : System.Web.Security.MembershipProvider
{
public ovverride bool ChangePassword(string username, string
oldPassword, string newPassword)
{
// perform your password change task here.
}
}

You will have to override all of the methods within the MembershipProvider
class in order for it to be operable. On some, you can just call the base
method (the original method) by doing the following:

base.DeleteUser(string username, bool deleteAllRelatedData);

When you are done, make the following change to your web.config file:
<membership defaultProvider="DansMembershipProvider">
<providers>
<add name="DansMembershipProvider" type="DansMembershipProvider,
DansMembershipProviderAssembly"/>
</providers>
</membership>

Then, whenever you make calls to the methods within the Membership object,
it will call your custom methods.

Good luck.

Shaun McDonnell

"Dan" <d@d.dwrote in message news:OA**************@TK2MSFTNGP06.phx.gbl...
Thanks for replying.
Yes i use the sqlserver express as database for users and memberships.
It's the easiest way i suppose. The mdf file is created automatically.
To be honest, i don't understand very good what you mean with:
"you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task".
Could you give some hints how to perform that?
Thanks again.
"Shaun C McDonnell" <sm**************@eisoft.comschreef in bericht
news:CF**********************************@microsof t.com...
>Dan,

My guess is you are using the SqlRoleProvider for storing your user
information? One thing you could do is have a page that directly edits
this
database.

Also, you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task.

Shaun McDonnell
"Dan" <d@d.dwrote in message
news:uD**************@TK2MSFTNGP05.phx.gbl...
>>Hi,

I use the <asp:CreateUserWizardcontrol for creating memberusers. In
that windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?

Thanks
Dan

Feb 13 '07 #4
Dan
Thanks
Strange that the possibility for changing the email is not foreseen, just
like changing the password ...No?

"Shaun C McDonnell" <sm**************@eisoft.comschreef in bericht
news:33**********************************@microsof t.com...
Dan,

Here is an example of what I am talking about. Check out the methods you
can call within the Membership object. There is a method called
'ChangePassword'

By creating your own MembershipProvider you could override this method and
have a custom task performed when a user attempts to change its password.
Here is an example:

public class DansMembershipProvider :
System.Web.Security.MembershipProvider
{
public ovverride bool ChangePassword(string username, string
oldPassword, string newPassword)
{
// perform your password change task here.
}
}

You will have to override all of the methods within the MembershipProvider
class in order for it to be operable. On some, you can just call the base
method (the original method) by doing the following:

base.DeleteUser(string username, bool deleteAllRelatedData);

When you are done, make the following change to your web.config file:
<membership defaultProvider="DansMembershipProvider">
<providers>
<add name="DansMembershipProvider" type="DansMembershipProvider,
DansMembershipProviderAssembly"/>
</providers>
</membership>

Then, whenever you make calls to the methods within the Membership object,
it will call your custom methods.

Good luck.

Shaun McDonnell

"Dan" <d@d.dwrote in message
news:OA**************@TK2MSFTNGP06.phx.gbl...
>Thanks for replying.
Yes i use the sqlserver express as database for users and memberships.
It's the easiest way i suppose. The mdf file is created automatically.
To be honest, i don't understand very good what you mean with:
"you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task".
Could you give some hints how to perform that?
Thanks again.
"Shaun C McDonnell" <sm**************@eisoft.comschreef in bericht
news:CF**********************************@microso ft.com...
>>Dan,

My guess is you are using the SqlRoleProvider for storing your user
information? One thing you could do is have a page that directly edits
this
database.

Also, you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task.

Shaun McDonnell
"Dan" <d@d.dwrote in message
news:uD**************@TK2MSFTNGP05.phx.gbl...
Hi,

I use the <asp:CreateUserWizardcontrol for creating memberusers. In
that windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?

Thanks
Dan


Feb 13 '07 #5
Yes, but there is an UpdateUser method which will perform that task.

Shaun McDonnell

"Dan" <d@d.dwrote in message news:uN*************@TK2MSFTNGP04.phx.gbl...
Thanks
Strange that the possibility for changing the email is not foreseen, just
like changing the password ...No?

"Shaun C McDonnell" <sm**************@eisoft.comschreef in bericht
news:33**********************************@microsof t.com...
>Dan,

Here is an example of what I am talking about. Check out the methods you
can call within the Membership object. There is a method called
'ChangePassword'

By creating your own MembershipProvider you could override this method
and have a custom task performed when a user attempts to change its
password. Here is an example:

public class DansMembershipProvider :
System.Web.Security.MembershipProvider
{
public ovverride bool ChangePassword(string username, string
oldPassword, string newPassword)
{
// perform your password change task here.
}
}

You will have to override all of the methods within the
MembershipProvider class in order for it to be operable. On some, you
can just call the base method (the original method) by doing the
following:

base.DeleteUser(string username, bool deleteAllRelatedData);

When you are done, make the following change to your web.config file:
<membership defaultProvider="DansMembershipProvider">
<providers>
<add name="DansMembershipProvider" type="DansMembershipProvider,
DansMembershipProviderAssembly"/>
</providers>
</membership>

Then, whenever you make calls to the methods within the Membership
object, it will call your custom methods.

Good luck.

Shaun McDonnell

"Dan" <d@d.dwrote in message
news:OA**************@TK2MSFTNGP06.phx.gbl...
>>Thanks for replying.
Yes i use the sqlserver express as database for users and memberships.
It's the easiest way i suppose. The mdf file is created automatically.
To be honest, i don't understand very good what you mean with:
"you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task".
Could you give some hints how to perform that?
Thanks again.
"Shaun C McDonnell" <sm**************@eisoft.comschreef in bericht
news:CF**********************************@micros oft.com...
Dan,

My guess is you are using the SqlRoleProvider for storing your user
information? One thing you could do is have a page that directly edits
this
database.

Also, you could inherit your code from MembershipProvider and use the
ChangeEmailAddress method to perform your task.

Shaun McDonnell
"Dan" <d@d.dwrote in message
news:uD**************@TK2MSFTNGP05.phx.gbl...
Hi,
>
I use the <asp:CreateUserWizardcontrol for creating memberusers. In
that windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?
>
Thanks
Dan
>


Feb 14 '07 #6

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

Similar topics

21
by: Lasher | last post by:
Hi, I have clients using an application that allows users to change their passwords. The application uses the 'ALTER USER xxx IDENTIFIED BY.....' command. What I need to do is use Oracle to...
3
by: CLEAR-RCIC | last post by:
Hi. I have some code that updates a user's account properties in Active Directory. The code also has a call that resets the account password (see code below). I put the code in a .dll and have a...
5
by: Br | last post by:
Is it possible when using Access security to log a user out? I have a client who would like to be able to change users without having to shut Access down. Anyone come up with a good solution?...
3
by: pealy2 | last post by:
Sorry if this is in the wrong group, I've searched long & hard without finding anything even slightly useful. (recommendations for a more relevant group gratefuly received) I need to change the...
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
6
by: Jan | last post by:
Hi: I have created a secured database for a client. For various reasons, I don't want the client to have full persmissions for the database; they aren't in the admins group. I have instead tried...
7
by: Mtr | last post by:
Using the mail() function, I can easily change the From address that appears in an email. But how do I change the From that gets sent in the SMTP conversation, which results in the address that...
2
by: =?Utf-8?B?bXVyYWRqYW1lcw==?= | last post by:
Yes, sorry I tried to make it clear in the original question that I want to get the user token of the service - ie. the account the service is running under. I know services don't have user tokens...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.