protected void btnAdd_Click(object sender, EventArgs e) { MembershipUser user = Membership.GetUser();// We must provide username, Get User doesnt work right here Guid userID = (Guid)user.ProviderUserKey; GoDine GD = new GoDine(); if (IsValidString(tbcuser.Text) && tbcuser.Text.Length >= 4) { if (!GD.CUserExists(tbcuser.Text)){ GD.CreateCUserToCompany_By_Guid(tbcuser.Text, userID, 0); Response.Redirect("Default.aspx"); ; lblproblems.Text = tbcuser.Text + " has been added as a user."; tbcuser.Text = ""; } else { lblproblems.Text = "This user already exists."; } } else { lblproblems.Text = "Only alphanumeric characters are accepted. Minimum 4 characters."; } }