CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
   Explore    Item Entry    Profile    Invite   History    Resources   SiteMap  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML




Zone: > newsgroup > asp.net forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: NewsGroup Date Entered: 10/30/2007 5:19:35 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 5 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
djclothier
Asp.Net User
CreateUserWizard query.10/30/2007 5:19:35 PM

0/0

 Hi.

 I'm sure this question has been asked before - but I've been scouring the Web all afternoon trying to find the solution to this, but to no avail so far. So I thought I would ask here....

I'm adding a dew bits and pieces to the Personal Web Site Starter Kit I have been playing around with - I don't come from a development background, so have found it useful in learning the basics involved with using Controls.

The environment: SQL Express, VS Web Developer, AJAX 1.0, .NET 2.0.

I have a page for registration, and by default the user that is created when someone 'signs up' to the site is left in an inactive state and relies on a site administrator to enable that user - no problem there, and I don't really want to change that at all - but I would like to do is to get the wizard to email me when a new user signs up so that I know to either (a) enable the user, or (b) leave it as is.

The solutions surrounding the topic of new user creation and emails have been that of sending the user an email once his/her sign up is complete; not really what I'm trying to achieve - I'm trying to make life a little easier through being notified via an email once a user signs up.

 

Is there a simple solution to this?

The wizard control code:

1    <asp:CreateUserWizard ID="CreateUserWizard1" Runat="server" 
2 ContinueDestinationPageUrl="default.aspx" 3 DisableCreatedUser="True" 4 EmailRegularExpression="\S+@\S+\.\S+" 5 EmailRegularExpressionErrorMessage="Please enter a valid email address."
6 ActiveStepIndex="1"
7 ContinueButtonText="Continue">
8 <WizardSteps>
9 <asp:CreateUserWizardStep runat="server">
10 </asp:CreateUserWizardStep>
11 <asp:CompleteWizardStep runat="server">
12 </asp:CompleteWizardStep>
13 </WizardSteps>
14 </asp:CreateUserWizard>

 

Thanks in advance,

David
 

 


David Clothier



If this answers to your question, please mark it solved/answered.
MaineOne
Asp.Net User
Re: CreateUserWizard query.10/30/2007 9:07:23 PM

0/0

 Add this to your CreateUserFinished sub.(Change the msg.To.Add of course)

 

            msg.To.Add("[email protected]")

            msg.Subject = "New Member"

            msg.Body = (username) & " would like to join."

            Dim smtp As New System.Net.Mail.SmtpClient

            smtp.Send(msg)

  Also make sure your smtp is set up in your web.config

 Sample:

 <system.net>
   <mailSettings>
     <smtp from="[email protected]">
       <network host="mail.aspsksolutions.com" password="xxxxx" userName="xxxxx" />
     </smtp>
  </mailSettings>
   
 </system.net>
  
[email protected]

MaineOne
Asp.Net User
Re: CreateUserWizard query.10/30/2007 9:10:51 PM

0/0

 You also may need to add this to the sub to get the username. Sorry

 

Dim username As String
       
username = CreateUserWizard1.UserName.ToString
 

[email protected]

3 Items, 1 Pages 1 |< << Go >> >|



Search This Site:





Other Resources:
Randomize query results - macromedia.coldfusion.cfml_general_discussion ... Randomize query results, > ROOT > NEWSGROUP > Adobe-Macromedia Forums > ... createuserwizard logs in users after setting property to false. All Times Are GMT ...
Amazon.com: "createuserwizard control": Key Phrase page ... createuserwizard control: Books containing the phrase createuserwizard ... Delete, Property Builder, Test Query, Choose Data Source, Open Browser Window, ...
Amazon.com: "Test Query": Key Phrase page Key Phrase page for Test Query: Books containing the phrase Test Query ... Check Plug-in, Pal User, createuserwizard control, comparevalidator control, ...
The Official Microsoft ASP.NET Site The current query in Figure 9 returns all of the records in UserProfiles, but we ... In order to have the CreateUserWizard control add a record to UserProfiles table ...
query about retrieving info related to logged in user - ASP.NET Forums ... info is collected when a user registers via extra steps in the createuserwizard, ... you created a query to return all records it should be something like this ...
CreateUserWizard how to CreateUserWizard Control plz give code. ... Hi use this link for your query. http://www.asp.net/CssAdapters/Membership/CreateUserWizard.aspx ...
CreateUserWizard - Stored Procedure - ASP.NET Forums Variable names must be unique within a query batch or stored procedure" ... Activate event fires when the user hits "next" in the CreateUserWizard ...
BusinessRx Reading List The CreateUserWizard and Validation ErrorMessages ... We need a query that will give us back a list of districts ordered by their male ...
p2p.wrox.com Forums: Topic Index Page 501 CreateUserWizard. Error With Crystal Decisions. Crystal Report and VB.NET ... how to open database file of .mdf extension. Query Analyzer. help me ...
Forms Authentication, Authorization, User Accounts, and Roles ... however, the SQL query at the bottom of the screen should include a WHERE clause. ... at how to customize the CreateUserWizard control to automatically add ...
p2p.wrox.com Forums: Topic Index Page 211 Table definition for CreateUserWizard. Outlook. how to display ... DateTime Typed Paramater on Parameterized Query. Where does Adobe Pro need to be installed? ...
 
All Times Are GMT