How do I programmatically set default role for new users

Thanks a lot for your fba pack.

I had customized your fba source code.

My requirement is: Default role should assign to new user when account is creating.

I have created 'Clients' role. and added it into Viewers site group. so Clients role will be default role for new users. because every time admin may not go for UserEdit.aspx page and assign the role to particular user.

I hope you get my point and help me soon.

Thanks & Regards

MD.Liakath Ali

I assume you mean using the membership request web part? If so, then at the moment it only supports automatically adding the user to a SharePoint group, not an FBA role. But you can use the SharePoint group to automatically assign permissions to a user when they register.