protected void btnRegisterUsers_Click(object sender, EventArgs e)
{
User addusers = new User();
string salt = CreateSalt(5);
addusers.Username = txtusername.Text;
//for combination of password and salt
string saltandpassword = string.Concat(txtpassword.Text, salt);
//now hashed them together for the saltandpassword together
string hashedpassword = FormsAuthentication.HashPasswordForStoringInConfigFile(saltandpassword, "SHA1");
addusers.Password = hashedpassword;
addusers.Salt = salt;
addusers.Firstname = txtfirstname.Text;
addusers.Lastname = txtlastname.Text;
addusers.Email = txtemailaddress.Text;
int roleid = Int32.Parse(ddrolelist.SelectedValue);
addusers.Roleid = roleid;
bool confirmation = false;
LansAsianGrill ApplicationManager = new LansAsianGrill( ...
Go to the complete details ...