Hi, I'm in the final countdown on my site, built with VWD 2005 X Ed and can't seem to find a consistent response to a couple of questions. Maybe someone out there can help? I am very, very new at .NET 2.0 and SQL Server, so any detailed/example responses would be very appreciated.
E-MAILING CUSTOMIZED CREATE USER WIZARD DATA
There are dozens of complex tips here and elsewhere on how to customize the create user wizard then send the information to the Profile section or into a custom database. While I don't exactly understand any of these posts yet, I'd like to be certain first which approach will serve my alternate need.
After a new user creates their default log in information, as well as completes additional custom fields, I'd like their new user name plus the custom fields e-mailed to me. I'm too overwhelmed with options to know which is the most streamlined way to do this. Here are some threads that seem close:
1) http://www.jeremywadsworth.com says he has code that will e-mail the default user information to me. I'm not sure how to get the custom fields, as well. Has anyone successfully used and modified this code?
2) http://aspnet.4guysfromrolla.com/articles/070506-1.aspx#postadlink offers what seems to be the absolute easiest way to add additional wizard steps. Not sure how to bypass their table entry and e-mail info instead. Is it as simple as replacing their table code with the basic smtp form mail code?
CUSTOMIZE:
<asp:WizardStep ID="CreateUserWizardStep0" runat="server">
<table>
<tr>
<th>Billing Information</th>
</tr>
<tr>
<td>Billing Address:</td>
<td>
<asp:TextBox runat="server" ID="BillingAddress" MaxLength="50" />
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="BillingAddress"
ErrorMessage="Billing Address is required." />
</td>
</tr>
</table>
</asp:WizardStep>SEND TO TABLE (don't want to do)
<asp:SqlDataSource ID="InsertExtraInfo" runat="server" ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString1 %>"
InsertCommand="INSERT INTO [UserAddresses] ([UserId], [BillingAddress]) VALUES (@UserId, @BillingAddress)"
ProviderName="<%$ ConnectionStrings:ASPNETDBConnectionString1.ProviderName %>">
<InsertParameters>
<asp:ControlParameter Name="BillingAddress" Type="String" ControlID="BillingAddress" PropertyName="Text" />
</InsertParameters>
</asp:SqlDataSource>E-MAIL INFO TO MY ADDRESS (do want to do)
?????
CHANGING CREATE USER WIZARD DEFAULTS - W/O HASHING PASSWORD
I would like to leave my passwords encrypted so people can request passwords, but all of the sample text that's happily provided here is for hashed passwords only. A quick search of Scott's blog yielded what looks like I need, but www.eggheadcafe.com has vanished!
"Steve said:
If i still want the passwords Encrypted in the Database, i can set passwordFormat="Encrypted", but it throws the error:
You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key
How do i do "change the machineKey configuration to use a non-autogenerated decryption key" ??
June 8, 2005 12:19 PM ""Scott Forsyth said:
Steve,
There is a section in your machine.config file that by default is set to auto generate the validationKey and decryptionKey. The section is <machineKey />.
Here is a good link to an online Key generator which will generate the whole key for you:
http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx
June 8, 2005 4:26 PM"Does anyone know where to find Peter's Machine Key Generator or have another link or directive on doing this?
Thanks for any assistance so I can finish up! dma
![]() |
0 |
![]() |
E-MAILING CUSTOMIZED CREATE USER WIZARD DATA: resolved
Still hoping for machine key generator so I can override the default Create User Wizard password length and format? Thanks!
![]() |
0 |
![]() |
The link is still alive actually, anyway, if you cannot access it, see here:
http://www.aspnetresources.com/tools/keycreator.aspx
http://www.orcsweb.com/articles/aspnetmachinekey.aspxRegards!^_^
Lostlander
![]() |
0 |
![]() |
LL, thanks a ton, I was hunting for a non-EggheadCafe.com link (that one is inactive/dead/can't even be accessed through cache). You just made my week.
![]() |
0 |
![]() |