473,385 Members | 1,693 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.

Create user within the Login Control

Hi,

I have a problem with existing customers from an old site, coming to
my new asp.net 2.0 site with the user roles and membership, and trying
to login with their old details.

As you know, the new built in membership encrypts passwords (I know
you can use the system without encrypting the passwords, but this what
i have unfortunetaly gone with), so I can not simply import the data
from the old database into the new one.

My idea was to create users on the fly if they try to log in user
their old details. Basically, when a user try's to login, if their
details dont exist in the new site, I will then search the old
database on LoginError using the details they have just provided
trying to login. If they are found in the old database, then I will
use their old details and create a new account for them.

So I can get their username and password which they type into the
Login Control, then I search the old database and get their details,
but then how can I go about creating a new account for them using the
asp.net memberships?
i.e. basically dynamically adding their details into the
CreateUserControl, and creating a user, but without the user seeing
this going on?

Is there such a way to do this?

or is there an easier way to import their old details into the new
system and encrypt their passwords?

Thanks

Oct 31 '07 #1
0 1087

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

Similar topics

3
by: Mr.KisS | last post by:
Hello all, I'm working with Windows XP PRO SP1, ASP.NET v2 (with Visual Web Dev) and, MS SQL 2005 with a database with Windows Authentication mode. I've an aspx page which must send a query to...
0
by: clintonG | last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2 development. After installing Visual Studio and SQL Express RTM my application has blown up. Logging in to the application...
0
by: Fabuloussites | last post by:
Greetings All, here is my situation. i have a master page that has a login user control embedded on it. within the user control there is a multiview. in the default view, the...
0
by: rn5a | last post by:
This is how I am using the GetAuthCookie using the FormsAuthentication object: 'after successful login Dim hCookie As HttpCookie FormsAuthentication.RedirectFromLoginPage(txtUserName.Text,...
3
by: =?Utf-8?B?TWFyY0c=?= | last post by:
I have a Server.Transfer in my asp:Login LoggedIn event handler. I am forcing transfer to a specific page since I do not want to use the ReturnURL that is in Request.Params (i.e., the user...
16
by: Mich | last post by:
Hi, i'm building an web application for anonymous users. They can take a look in the website, nothing more. In order to perform other actions, the anonymous user must be logged. So i create an...
20
by: luqman | last post by:
If user login with the login control in ASP.Net 2005 and then just close the browser and then open the browser again, the login status shows, User still Login? Any idea, how to Logout the User...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
4
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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.