Author: matt_k | Posted on: 7/9/2008 4:47:48 PM | Views : 990

Hi all,

Got a bit of a puzzling problem using the built-in PasswordRecovery control in ASP.NET 2.0. I've got the entire authentication system of the website setup using the built-in controls and it looks like the CreateUser wizard works fine, but my PasswordRecovery is acting a bit strange. For whatever reason, no matter how many ways I try it, it just can't seem to find the .txt file I'm trying to pass to it for the MailDefinition.BodyFileName.

The issue might be that I'm trying to assign it at runtime, but I'm doing the same thing to the CreateUser control, so I'm just confused as to why I keep getting the default email. Here's the (anonymized) code I'm using:

//setting up the createuser control

this.CreateUserMain.MailDefinition.BodyFileName = "~/Reg ...

Go to the complete details ...