Hi,
I use the <asp:CreateUser Wizardcontrol for creating memberusers. In that
windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?
Thanks
Dan 5 2206
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 MembershipProvi der and use the
ChangeEmailAddr ess method to perform your task.
Shaun McDonnell
"Dan" <d@d.dwrote in message news:uD******** ******@TK2MSFTN GP05.phx.gbl...
Hi,
I use the <asp:CreateUser Wizardcontrol for creating memberusers. In
that windows, one must provide an emailaddress.
My question is: how can an user later change his emailaddress?
Thanks
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 MembershipProvi der and use the
ChangeEmailAddr ess method to perform your task".
Could you give some hints how to perform that?
Thanks again.
"Shaun C McDonnell" <sm************ **@eisoft.comsc hreef in bericht
news:CF******** *************** ***********@mic rosoft.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 MembershipProvi der and use the
ChangeEmailAddr ess method to perform your task.
Shaun McDonnell
"Dan" <d@d.dwrote in message
news:uD******** ******@TK2MSFTN GP05.phx.gbl...
>Hi,
I use the <asp:CreateUser Wizardcontrol for creating memberusers. In that windows, one must provide an emailaddress. My question is: how can an user later change his emailaddress?
Thanks Dan
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 MembershipProvi der 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 DansMembershipP rovider : System.Web.Secu rity.Membership Provider
{
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 MembershipProvi der
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 deleteAllRelate dData);
When you are done, make the following change to your web.config file:
<membership defaultProvider ="DansMembershi pProvider">
<providers>
<add name="DansMembe rshipProvider" type="DansMembe rshipProvider,
DansMembershipP roviderAssembly "/>
</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******** ******@TK2MSFTN GP06.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 MembershipProvi der and use the
ChangeEmailAddr ess method to perform your task".
Could you give some hints how to perform that?
Thanks again.
"Shaun C McDonnell" <sm************ **@eisoft.comsc hreef in bericht
news:CF******** *************** ***********@mic rosoft.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 MembershipProvi der and use the ChangeEmailAdd ress method to perform your task.
Shaun McDonnell
"Dan" <d@d.dwrote in message news:uD******* *******@TK2MSFT NGP05.phx.gbl.. .
>>Hi,
I use the <asp:CreateUser Wizardcontrol for creating memberusers. In that windows, one must provide an emailaddress. My question is: how can an user later change his emailaddress?
Thanks Dan
Thanks
Strange that the possibility for changing the email is not foreseen, just
like changing the password ...No?
"Shaun C McDonnell" <sm************ **@eisoft.comsc hreef in bericht
news:33******** *************** ***********@mic rosoft.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 MembershipProvi der 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 DansMembershipP rovider :
System.Web.Secu rity.Membership Provider
{
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 MembershipProvi der
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 deleteAllRelate dData);
When you are done, make the following change to your web.config file:
<membership defaultProvider ="DansMembershi pProvider">
<providers>
<add name="DansMembe rshipProvider" type="DansMembe rshipProvider,
DansMembershipP roviderAssembly "/>
</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******** ******@TK2MSFTN GP06.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 MembershipProvi der and use the ChangeEmailAdd ress method to perform your task". Could you give some hints how to perform that? Thanks again.
"Shaun C McDonnell" <sm************ **@eisoft.comsc hreef in bericht news:CF******* *************** ************@mi crosoft.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 MembershipProvi der and use the ChangeEmailAd dress method to perform your task.
Shaun McDonnell
"Dan" <d@d.dwrote in message news:uD****** ********@TK2MSF TNGP05.phx.gbl. .. Hi,
I use the <asp:CreateUser Wizardcontrol for creating memberusers. In that windows, one must provide an emailaddress. My question is: how can an user later change his emailaddress?
Thanks Dan
Yes, but there is an UpdateUser method which will perform that task.
Shaun McDonnell
"Dan" <d@d.dwrote in message news:uN******** *****@TK2MSFTNG P04.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.comsc hreef in bericht
news:33******** *************** ***********@mic rosoft.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 'ChangePasswor d'
By creating your own MembershipProvi der 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 DansMembershipP rovider : System.Web.Sec urity.Membershi pProvider { 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 MembershipProv ider 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.DeleteUse r(string username, bool deleteAllRelate dData);
When you are done, make the following change to your web.config file:
<membership defaultProvider ="DansMembershi pProvider"> <providers> <add name="DansMembe rshipProvider" type="DansMembe rshipProvider, DansMembership ProviderAssembl y"/> </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******* *******@TK2MSFT NGP06.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 MembershipProvi der and use the ChangeEmailAd dress method to perform your task". Could you give some hints how to perform that? Thanks again.
"Shaun C McDonnell" <sm************ **@eisoft.comsc hreef in bericht news:CF****** *************** *************@m icrosoft.com... Dan,
My guess is you are using the SqlRoleProvider for storing your user informatio n? One thing you could do is have a page that directly edits this database.
Also, you could inherit your code from MembershipProvi der and use the ChangeEmailA ddress method to perform your task.
Shaun McDonnell
"Dan" <d@d.dwrote in message news:uD***** *********@TK2MS FTNGP05.phx.gbl ... Hi, > I use the <asp:CreateUser Wizardcontrol for creating memberusers. In that windows, one must provide an emailaddress. My question is: how can an user later change his emailaddress? > Thanks Dan >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 capture the
username and password and send the info to another Oracle instance on
a different server and update that users password.
Basically I need to keep the user's password in sync between two
different databases.
|
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 test vb.net app that calls
it. It works fine from there. When I try to call the .dll from an asp.net
app, the update works but I get the error 'Access is Denied' when I try to
reset the password. Anyone have any ideas?
Maybe you need to be...
|
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? (perhaps just close the app and
open it again in code?)
Bradley
|
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 settings for the default web service user account
so that sounds go through a sound card rather than the on-board sound.
I can do this simply when I'm logged in to my own user account by going
through control panel. If I can't log on as the Web...
|
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 fine so far.
My problem is that when I call a web method to modify the dataset inside the
Web service it is never updated and I get no errors.
currentPeriods method will always give me 1 even if I call ChangeDataset and
call currentPeriods...
| |
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 to create a second
group, called "localAdmin," for the admin-type person at the client. I
want this group to be able to do some basic admin-type stuff, including
adding new users and clearing passwords if users forget theirs.
I can't seem to...
|
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 appears in the
envelope's Return-path: header? That value currently is the
account_name@machine_name, but I don't want to give away my Linux account
name with every single email.
|
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 - I suspect users do have
tokens, hence "user token", otherwise we might call them "service tokens" or
somesuch :-)
If you read the question again, you migh see that the fundamental question
is, *assuming there is no other approach*:
The...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |