protected void lbtnAddWebsites_Click(object sender, EventArgs e) { ContactInfoBO objContactInfo = new ContactInfoBO(); objContactInfo.Name = txtWebsites.Text; objContactInfo.UserId = Userid; objContactInfo.Type = "Website"; ContactInfoDAL.insertContactInfo(objContactInfo); LoadWebsites(); }
protected void lbtnAddEmail_Click(object sender, EventArgs e) { ContactInfoBO objContactInfo = new ContactInfoBO(); objContactInfo.Name = txtEmail.Text; objContactInfo.UserId = Userid; objContactInfo.Type = "Email"; ContactInfoDAL.insertContactInfo(objContactInfo); LoadGridView(); }
protected void lbtnAddPhoneNumber_Click(object sender, EventArgs e) { ContactInfoBO objContactInfo = new ContactInfoBO(); objContactInfo.Name = lstCountryCode.SelectedValue + "-" + txtPhoneNumber.Text; objContactInfo.UserId = Userid; objContactInfo.Type = "PhoneNumber"; ContactInfoDAL.insertContactInfo(objContactInfo); LoadPhoneNumber(); }