Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    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();
    }
Exemplo n.º 3
0
    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();
    }