Activation Link That User Will Press To Activate An Account
Nov 26, 2010
Doing an activation link that the user will press to activate an account. What i wanted to ask is, the link will go to a page and it will hit the sql server to find out if it's valid.Now what i'm afraid of is that some boot can send thousands of get's in the page, forcing the sql to be active with useless data. So is there a way to protect against this? I was thinking the "lock ip" trick i did to stop users trying to log in to a site many times. Any other suggestions are welcome. Some other think also.I use a try catch in case of a get with not or wrong data.Will this affect the site in general? I mean i don't really care if someone post an invalid get and wait for the try catch, but does this affect the performance of the site in general or a session takes the memory by default and ignore any try catching that s stalling the page.
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:
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?
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!
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.
I have a repeater that creates a list of links buttons and a main content window, every time the user press one of the rpt link buttons a different message is display in the content window.i wanted to use ajax for this task, to accomplish this my first thought was to surround the main content window with update panel control and dynamically add triggers to each of the rpt link buttons, i tried that for a while and since it didn't work i tried another way, i added another update panel around the repeater and it worked like a charm....but i have this feeling that i made it in a "dirty" way... is this bad practice? should i try harder and add each of the repeater link buttons a trigger to the main content window update panel?
I work with an ASP.NET application and the standard Membership ASP.NET database to register user.
Could it be possible to explain or to give examples how to program the system to work with a confirmation mail so that the user need to click on the link to activate his account?I would like to do this to avoid SPAMMERS
Could anyone provide guidance about the common technique of sending an email to the new user -> new user clicks the link in the email -> and then the account becomes activated and ready for use?
Currently using the CreateUserWizard control in .NET v4 and a Membership db in SQL Server 2008. If I need to do this via custom code and not the CreateUserWizard that's fine. Would be nice to see expert thoughts on this common, enterprise quality, new account validation technique.
The link below outlines a technique for sending a confirmation email but does not include activation:[URL]
I am having a probem when logout from my website.When i copy the URL page which is the page after login,and paste it again in browser,i can direct it to the page even though i alr logout. I not using any buit in asp control,and the logout button link that i create is place at Master Page.
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
Just finished to read the Visual Web Developer 2008 book and something is still not clear.
We can use the Web Site Administration Tool to add users to our website. Suppose that each user is one of our company customers and that we want to allow them to login and edit their profile (name, company, address, city, etc.), how do we link the authentication account to the table containing each customer data?
I have a checkbox on my page that must be ticked and to validate it I am using a custom method as below. The problem is that I now put the checkbox and method within a Create User Wizard custom tempalte and when I submit the form it does not activate the validation check. If I put a normal button on the page outside the tempalte it works. Not sure If I a missing something. Perhaps I can activate it in Created User Event handler in code behind. All Button in my create user Event.
I facing a problem here. how can I make the create user wizard category all the new user become normal user role? I have created 2 role which is Manager and Normal User. Normal User can't view the Manager page. But after i create a new user account, i can view manager and normal user page. I want to make all the new member registration will be normal user role?
I have the membership provider and the create user with tow steps, one of the steps contains a custom registration form, for each created user data will be in the database, and there is an account page shows the data that the new created user did insert during the registration process on the custom registration page,
the problem, when the user is created and logged into his account page, this account page shows only the information for the first created user, not the info on the logged in user , but the logged in user data still saved in database and not showing on his account page?
I am creating a newsletter and I have got a problem. I have 2 text boxes. In one textbox the user types his name and in the second one the user enter his email address. When the user press the button if the email exists I want to show a message box him that the email address already exists. If the email does not exist I want to insert his email on the database and show a message that he has been inserted in the newsletter list. Just to let you know guys I am using C#
1. I need to load a user control on link click event of a link button during postback of aspx page.
2. On button click event of a save button on that aspx page, I need to read the selected values from that user control on further postback.
If I write the loadcontrol code in link_click event, the control is not recognized at all in the button_click event. When I shift it to page_init and execute only during not postback, the user control loads with default values.
After submitting a form, the user is presented with a link to a pdf document. The link is straight to the document, it is not streamed.
If the user right-clicks and chooses 'save link as,' the document saves and opens fine. However, if the user just clicks on the link, the browser takes a very long time to respond (I'm going to guess it's 3 minutes) and then adobe reader gives the following error:
"the file is damaged and could not be repaired"
This is in Chrome v5, ASP.NET 3.5 and the link is returned inside an UpdatePanel.
I have a user control with contact form and validators, when I add it (user control) to my parent page I get a strange behavior of all buttons within the parent page, Any button I press on the parent page fires the validators of the user control. How can I vallidate the form on my user control only when I press a specific button?
I have a page with lots of panels on it. Some of the panels are user controls and some are just on the page. I have a form on the page where you can add users and a gridview which is a user control showing a list of users.When a new user is added on the form I want to do gridview.databind() for the gridview in the user control. Does anyone know how to do this?
I'm using asp.net membership provider. and I need to block user account in case if the user post spam. How can I accomplish it using build in features of the Membership Provider.Can I use IsLockedOut? If so how can i update it programmatically?