Last post Oct 22, 2007 01:33 PM by fishmore
Oct 19, 2007 02:51 PM|fishmore|LINK
I have been working on this problem all day.
I would like to have a new registered user to become a "Friend" automatically. I have a folder that i want people to have instant access to once they have created an account.
new users - Administration tool
Oct 20, 2007 08:33 AM|jeremyh|LINK
Add the role to your create user wizard like so
Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs)
Oct 22, 2007 08:59 AM|fishmore|LINK
Thanks, that looks right, but where do i put it?
I tried adding it to the back code on my register.aspx.cs but i recieved errors. keep in mind i am using C#.
thanks for your help
Oct 22, 2007 10:49 AM|jeremyh|LINK
Sorry missed the c# bit here you go, just add to your .cs page and all should be well
protected void CreateUserWizard1_CreatedUser(object sender, System.EventArgs e)
Hope it helps
Oct 22, 2007 11:32 AM|fishmore|LINK
Still hasn't worked. I tried two different ways. The first ran ok, but I didn't get the correct results.
And the second try returned an error.
do you see anything wrong?
Oct 22, 2007 11:43 AM|fishmore|LINK
My screen shors didn't work so here is the two codes,
that one ran, but with no results. here is the second one.
Oct 22, 2007 12:49 PM|jeremyh|LINK
Did you add OnCreatedUser="CreateUserWizard1_CreatedUser" to the asp:CreateUserWizard ?
Oct 22, 2007 01:33 PM|fishmore|LINK
I got it now!!
Thanks, it works great!