示例#1
0
    /// <summary>
    /// save the member account
    /// </summary>
    protected void btnSave_click(object sender, EventArgs e)
    {
        MemberAccount Account = MemberAccount.GetMemberAccountByMemberID(member.MemberID);

        Account.Username = txtTwitterUserName.Text;
        Account.Password = txtTwitterPassword.Text;

        Account.Save();
    }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MemberAccount Account = MemberAccount.GetMemberAccountByMemberID(member.MemberID);

            if (Account == null)
            {
                Account          = new MemberAccount();
                Account.MemberID = member.MemberID;
                Account.Save();
            }

            txtTwitterUserName.Text = Account.Username;
            txtTwitterPassword.Text = Account.Password;
        }

        txtTwitterUserName.Attributes.Add("value", txtTwitterUserName.Text);
    }