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