473,386 Members | 1,674 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,386 software developers and data experts.

ASP.NET2-VB: Using default membership provider with the email address as username

Steve Kiss
Hi. I'm developping an website that uses the ASP.NET membership provider with Sql Server. The problem is I want to use the user's email address as a unique identifier instead of a username. Unfortunately, I'm not sure how to do this. I've been trying to make an invisible textbox for the username that takes the value from the email address textbox. Has anyone encountered this problem before or have any suggestions?
Jul 11 '07 #1
2 1380
Have the the CreateUserWizard call the following function onCreatingUser:

Public Sub RegisterNewUser_CreatingUser(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.LoginCancelEventArgs)
Dim cuw As CreateUserWizard = CType(sender, CreateUserWizard)
cuw.Email = cuw.UserName
End Sub
Jul 12 '07 #2
kenobewan
4,871 Expert 4TB
Well done, thanks for sharing the solution :).
Jul 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Scott H | last post by:
I spent most of yesterday looking into this, and still didn't really find an answer... I have a .NET2.0 app that I need to install on a server, and then possibly several other servers later, it...
2
by: bb | last post by:
i use the losformatter to serialise a hashtable and the store in the database. (i save some urls so they can be reconstructed) we have moved the project from asp.net1 to asp.net2 now whenever...
2
by: Patrick Smacchia | last post by:
Hi, I've just released the book Practical .NET2 and C#2. More info is available on the site http://www.PracticalDOT.NET You can download sample chapters about CLR, Security, Threading/Synchro...
0
by: Filippo Bettinaglio | last post by:
PermView.exe - .NET Framework Permission Request Viewer. Why PermView.exe is not included any more in the .NET2 Framework? Is there a correspondent utility for .net2 assemblies? Many Thanks,...
4
by: hvj | last post by:
I need to run a .NET1.1 program in a .NET2.0 CLR. The .NET1.1 exe starts correctly in .NET2.0. Now I want to debug in Visual Studio 2005. But when I try to open the .NET1.1 project, Visual Studio...
0
by: Groove | last post by:
(repost!) I have a simple and common scenario. I'm developing pages in VWD and FTP-ing them over to a test servr running Window 2003, NET2 Framework. On my page, I have a DDL that causes a...
1
by: Palani | last post by:
Hi I have started writing an ASP.NET2.0 FTP web client, I would like to use FTPWebRequest class. I am new to ASP.NET2.0. Can anybody help me with a sample ASP.NET application?
4
by: dreamamit2001 | last post by:
Hi, I would like to know the ASP.NET2.0's(Controls, Menubar, Validations, Object Data Souce Controls, Treeview Control) compatibility with IE5.0 browser on Mac OS. If I don't use Client side...
3
by: Marcus | last post by:
Hi, I converted my .Net1.1 application (written in VS2003) to a .Net2.0 application. I let VS2005 do the job as it suggested when trying to load my VS2003 project in VS2005. I then included the...
1
by: =?Utf-8?B?Sm9obiBPbGJlcnQ=?= | last post by:
Rubber Banding in Net2.0 Is there any functionality built into Net2.0 for Rubber Banding (selection by click, drag and release) on the Control based classes such as the Pane class or other classes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.