protected void LoadWebsites() { GridViewWebsites.DataSource = ContactInfoDAL.getContactInfo("Website", Userid); GridViewWebsites.DataBind(); if (GridViewWebsites.Rows.Count <= 0) { lblWebsitesLabel.Visible = false; GridViewWebsites.Visible = false; } }
protected void LoadPhoneNumber() { GridViewPhone.DataSource = ContactInfoDAL.getContactInfo("PhoneNumber", Userid); GridViewPhone.DataBind(); if (GridViewPhone.Rows.Count <= 0) { lblPhoneNumbers.Visible = false; GridViewPhone.Visible = false; } }
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 LoadOthersEmail() { GridViewEmail.DataSource = ContactInfoDAL.getContactInfo("Email", Userid); GridViewEmail.DataBind(); if (GridViewEmail.Rows.Count <= 0) { lblOthersEmails.Visible = false; GridViewEmail.Visible = false; } }
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 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(); }
protected void LoadPhoneNumber() { GridViewPhone.DataSource = ContactInfoDAL.getContactInfo("PhoneNumber", Userid); GridViewPhone.DataBind(); }
protected void LoadWebsites() { GridViewWebsites.DataSource = ContactInfoDAL.getContactInfo("Website", Userid); GridViewWebsites.DataBind(); }
protected void LoadOthersEmail() { GridViewEmail.DataSource = ContactInfoDAL.getContactInfo("Email", Userid); GridViewEmail.DataBind(); }