Author: prithiraj | Posted on: 1/23/2010 5:00:21 PM | Views : 232

Hi,
I have 2 questions to ask.

1. On OnCreatedUser event, I create a folder for each members, so that they can store their files inside those. The thing is I use User.Provider key as a folder name. Is this a good way to store? Is this OK from security view point. Otherwise I am planning to use the User.Username. Here are the codes inside the OnCreatedUser event.
MembershipUser User = Membership.GetUser(str_username); object UserGUID = User.ProviderUserKey; string userid = UserGUID.ToString(); string username = User.UserName; try { Directory.CreateDirectory(Server.MapPath("~\\membership\\empdata\\" + userid)); } catch (Exception ex) { Response.Write("1234"); }
2. Inside these user folders I want to put web.config at run time [at the time of re ...

Go to the complete details ...