コード例 #1
0
    protected void InsertReg()
    {
        tipo = "Insert";


        user.name        = TextBoxCognoms.Text + ", " + TextBoxNom.Text;
        user.img         = "";
        user.iv          = Utils.selectedIndexesOfCheckBoxList(CheckboxlistIV);
        user.mail        = TextBoxCorreu.Text;
        user.religion    = "";
        user.children    = SeleccioFills();
        user.sex         = SeleccioSexe();
        user.sexWanted   = SeleccioSexeBuscat();
        user.shape       = TextBoxFigura.Text;
        user.sports      = TextBoxEsports.Text;
        user.tastes      = Utils.selectedIndexesOfCheckBoxList(CheckListGustos);
        user.typeOfHair  = TextBoxCabell.Text;
        user.ubication   = "Falta omplir";
        user.colour      = DropdownlistColor.SelectedItem.Text;
        user.civilstatus = TextBoxCivil.Text;
        user.birthplace  = TextBoxOrigen.Text;
        user.birthdate   = getBirthDate();

        FMong.preUpload(user, tipo);
        LabelFi.Text = "Benvingut a TODATE";
    }
コード例 #2
0
 protected void LinkButtonAcceptar_Click(object sender, EventArgs e)
 {
     if (FMong.preUploadSelect(TextBoxDadesNom.Text, TextBoxDadesContra.Text))
     {
         //codi per anar a la seguent pagina
     }
     else
     {
         LabelError.Visible = true;
     }
 }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string LabelCorreuMestre = "pautonto";
        Usuari user = new Usuari();

        user             = FMong.SelectUser(LabelCorreuMestre);
        LabelNom.Text    = user.name;
        LabelCorreu.Text = user.mail;
        LabelData.Text   = Convert.ToString(DateTime.Now);
        LabelEdat.Text   = Encrypt.Desencriptar((user.birthdate.ToString()), "");
    }
コード例 #4
0
ファイル: Home.aspx.cs プロジェクト: ktfk94/Todate
 protected void LinkButtonAcceptar_Click(object sender, EventArgs e)
 {
     if (FMong.preUploadSelect(TextBoxDadesNom.Text, TextBoxDadesContra.Text))
     {
         Response.Redirect("PagPrincipalIniciat.aspx");
     }
     else
     {
         LabelError.Visible = true;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "showModal();", true);
     }
 }