Activation Email Without Create Wizard Control?
Jun 20, 2010
I know there is a lot of information regardind sending activation e-mails, but I have just found information regarding the Create Wizard control, and I'm doing all the forms manually. Right now, I'm able to register a user name in a SQL Server Database, and then an e-mail is sent to this new user to the corresponding em-mail address, the columns the user has to register are:
ID
Name
Nickname
Password (SHA1 hash)
E-mail
I don't know if it is the best approach, and also, there are somethings I don't know how to do. Creating another column in the database table, then a Trigger that on insert fills that column (or just a query that fills it) with for instance "Inactive". Creating a guid code. (What is the guid? and what is it for?) In the email generated attach a link that will open the confirmation.aspx page that will run a code on load that will compare the necessary fields with the database. If the comparison is succesful the page will run a query to update acivation column from "Inactive" to "Active". When the user wants to login compare "username" "Password" and check "Activation" columns before enabling the log-in. THe thing is that I don't know is what is the guid is for, and how to use the data to embed it in the link. Because I have seen something like confirmation.aspx?username or something like that that you have to do.
View 7 Replies
Similar Messages:
May 16, 2010
I've been programming with VB for a little over 2 years, however have never had any formal education. So the extent of my education is as follows:
I want to know how to do a mouseover for an image on my webpage, I look online for someone who's done it in VB and I try and duplicate their code and then play with it until I get the results I want.
So as you can see there is a wealth of VB coding that simply escapes me because I just haven't desired to include it or needed to include different aspects of VB in my programs / web developments. What I want now is big enough that so far (one week of online searches) I've uncovered no site or forum that has given me a tutorial on how to go about implementing what I want into my Microsoft Web Development project. The old sources for information are only good for one or two aspects of a coding procedure, not an entire overhaul of my current .aspx files. Not to mention a bias towards hard coding in pure <html>, I get a lot of that when someone doesn't have the patients to address my question.
When I created my new project it automatically populated an Accounts folder with a Changepassword.aspx, Changepasswordsuccess.aspx, registration.aspx, and Login.aspx. I've successfully prevent the program from logging in the user after they register with a simple " ' " before an authentication line in the registration.vb code; however, the login.vb code and the login.design.vb code is simple beyond me, and I've yet to find a site that spells it out for me.
I've created an online test. However, the intent is to have the users only take the test once, thus after they register with their email address I want my site to send them an email with an account activation link. Once they click on this link by visiting their inbox they can then take the test.
View 10 Replies
Jan 22, 2012
How to send email to users registered to our site and approve their account?
View 1 Replies
Aug 8, 2010
After a user creates their account with the create new user wizard, I would like to have a confirmation email sent that requires them to click on a link in the email to confirm their account and verify their email address before account is activated.
View 4 Replies
Aug 18, 2010
I have create user wizard control on my page as below with mail definition setup to send a welcome email to new registerd user.
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
requiresQuestionAndAnswer= "false"
oncreateduser="CreateUserWizard1_CreatedUser" LoginCreatedUser="False">
<MailDefinition BodyFileName="~/EmailTemplates/CreateUserWizard.txt"
From="myemailaddress" Subject="New User">
</MailDefinition>
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" >
<ContentTemplate>
layout content here
</
ContentTemplate>
</WizardSteps
>
</asp:CreateUserWizard
>
Problem is I am not receiving the welcome email.
To test it, I placed another create user wizard on another page in its default form
as below
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
<MailDefinition BodyFileName="~/EmailTemplates/CreateUserWizard.txt"
From="myemailaddress" Subject="New User">
</MailDefinition>
<WizardSteps>
<asp:CreateUserWizardStep runat="server" />
<asp:CompleteWizardStep runat="server" />
</WizardSteps>
</asp:CreateUserWizard>
This one worked and I got welcome email. The setup in Web Config is correct. Is it because I have the oncreateduser="CreateUserWizard1_CreatedUser" or some other conflict issue.
View 1 Replies
Jan 5, 2011
CREATE TABLE Member
(
memberID int IDENTITY (2480,39) PRIMARY KEY,
memberName nvarchar(70) NOT NULL,
password nvarchar(30) NOT NULL,
eMail nvarchar(100) NOT NULL,
notify bit NOT NULL,
isActive bit NOT NULL,
lastLogin datetime DEFAULT GetDate(),
dateCreated datetime DEFAULT GetDate() NOT NULL
);
Once user fill registration form that consists of:
memberName, password, email and check/uncheck notify box then click submit. The values will be stored in the above table with isActive equals to False. Email will be sent to user for activation, once activated, isActive will equal to true. 1. How can i send an activation link to the email and then change isActive to True once link is clicked? I tried to solve it, i just didn't get it yet.
View 3 Replies
Jan 21, 2010
I found a tutorial on how to setup a user will be emailed an activation link when registering [URL]. What I want is modify it so that the email is sent to the administrators for activation.
View 9 Replies
Apr 27, 2012
how to verify that if an e-mailid is valid and how to send an e-mail in the inbox to validate an e-mailid by clicking on the link
View 1 Replies
Jan 23, 2014
How to send a registration link in email upon new event creation? there has to be some ID associated with it so that when a new user clicks on registration link a page opens up with the specific event details..
View 1 Replies
May 14, 2013
I have to validate the email addresses. For that an email containing verification link is sent to the candidates while registering. By clicking the link the database will be updated with the status of email id as verified. How can I pass the username or other details of the candidates through the verification link? I am using asp.net with c# coding.
View 1 Replies
Aug 10, 2010
How can I get all the textboxes inside a create user wizard control using getElementsByTagName().
Below is my JQuery code:
[Code]....
The above code isn't displaying hint text when the textbox retreives focus.
I think there is something wrong with this getElementsByTagName("asp:TextBox"); , I have also tried getElementsByTagName("TextBox"); , getElementsByTagName(":textbox"); and getElementsByTagName("input"); .
But no one of them gets the textboxes array.
Can anyone tell what will be the correct syntax for getting all the textboxes inside a create user wizard control using getElementsByTagName()?
View 3 Replies
Apr 27, 2012
Using Create user wizard enter email address send mail to that email address when click submit button and redirect login page
View 1 Replies
Aug 9, 2012
The activation code is not receiving here
4 hours, 23 minutes ago|LINK
if (String.IsNullOrEmpty(Request.Params["ActivationID"])){Response.Redirect("index.html");}else{try{con.Open();string hash = Request.Params["ActivationID"];Response.Write(hash);con.Open();cmd = new SqlCommand("update userdetails set status=1 where hashid='" + hash + "'", con);cmd.ExecuteNonQuery();con.Close();Response.Write("Your account has been successfully activated. You can now login using the username and password you chose during the registration. ");
} catch{Response.Redirect("index.html");}}
But the values is passing to here [URL] .... but not working the above code
View 1 Replies
Jan 21, 2010
I want to send a confirmation email to the user after they register to my website. I am using CreateUserWizard of .NET and I use C#.
My idea is after users register they get an email with a link. If they click the link, they will come to an activation page. I have done this so far:
Register.aspx:
[Code]....
[Code]....
After Guid userId = (Guid)user.ProviderUserKey;
I am very confused and not sure what to do. I understand that i need to email an url with the userID to user's email upon registration, but how to do this, and when user clicks that url in that email, how that url will automatically come to activation page?
View 6 Replies
Oct 8, 2010
I know this is a simple fix but here's my register.aspx.vb and activation.aspx.vb codes. Its given an ordinary user unauthorized permissions after activation from email link which when clicked, approves and logs them in.
Protected Sub RegisterUser_CreatedUser(ByVal sender As Object, ByVal e As EventArgs) Handles RegisterUser.CreatedUser
FormsAuthentication.SignOut()
If _group IsNot Nothing Then
[Code]....
View 2 Replies
Dec 15, 2012
how can i implement new user Email verification in regsitration form. It should be like, when user clicks on Submit button, an email sent to the user email id with an autogenerated code and a redirect link ..
View 1 Replies
Feb 9, 2010
I program in vb
I was wondering if someone can direct me to a good quality tutorial on the process of registering and sending an activation link to the user's email address. I can't seem to find any useful tutorials online!
View 5 Replies
Oct 29, 2010
I am using CreateUserWizard control on my admin page.After successfully creating a user with the control, it displays "Complete Your account has been successfully created."After clicking on continue button it sets the ActiveStepIndex Correctly.The problem is, while it sets the ActiveStepIndex correctly, it retains the old user account credentials.
View 8 Replies
Jul 22, 2010
I want to access my textbox with id=UserName from javascript but its giving me error (on the highlighted JS line) that UserName does not exists in the current context.
Can any one tell me how to acces a controls value with is residing in asp.net's CreateUserWizard control?
Here is my code-
[Code]....
View 7 Replies
Jan 11, 2011
There has to be a simple way to send a confirmation email to new users. Every article that I've read really doesent tell me how to use the sendingmail event. In addition when I had it working, it wouldnt send emails to places like gmail or aol.
asp.net 3.5 - VB language - godaddy hosing, sql server database host membership information
This is the current response I get when is set custom errors mode to Off
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 131.238.75.25:25
View 2 Replies
Jan 11, 2010
I need to create a form that would work like this Choose Provider :( user would select gmail, yahoo, hotmail, ext) Enter Name: ( user enters there name) Message : ( user enters message) and then the "submit"button.
View 2 Replies
Jan 11, 2011
Alright so I want to create a form, where the text in the textboxs will be sent to my database, after the user hits sumbit. The problem I am facing is i am used to using a detailsview or formview to do this for me, but how can I do this myself, where I manuelly update my database.
View 1 Replies
Jan 7, 2010
Does anyone know how to disable a create user button in the Create User Wizard if the Terms and Conditions checkbox is not checked?
I have a CUW with additional fields (the data of which is stored in an additional table that I have added to the ordinaty SQL membership database) and I want the user to check the Terms and Conditions checkbox before the user is created.
By any chance, do you also know how to prevent the creation of the user if the additional fields have not been filled?
I triend with Java, code behind and many method but it still dont work: the user is created even if the Terms and Conditions are not checked.
View 6 Replies
Dec 9, 2010
i m trying to add new field named mobile in my create user wizard control for that in my web.config i add
profile
enabled ="true">properties>add
name ="Mobile"
type ="string"/>properties>profile>
in my create user wizard using edit template i add one textbox named 'txtmobile'
nd in my cs i write
CreateUserWizard2_CreatedUser
{
ProfileCommon p = (ProfileCommon)ProfileCommon.Create(CreateUserWizard2.UserName,
true);
TextBox txtM = ((TextBox)CreateUserWizard2.CreateUserStep.ContentTemplateContainer.FindControl("txtMobile"));
p.Mobile = txtM.Text;
//p.Mobile = ((TextBox)CreateUserWizard2.CreateUserStep.ContentTemplateContainer.FindControl("txtMobile")).Text;
p.Save();
}
but it throws the error of 'object reference' nd also let me know how to store that field in db?
View 1 Replies
Feb 17, 2010
i have a "CreateUserWizard" in my page, the problem is i cant give a roll to that user, only a default role.
I tryed to it with a dropdown with roles and doing if's in the code behind but doesnt work, someone know how to do it?
ASPX:
[Code]....
C#:
[Code]....
View 9 Replies