Esempio n. 1
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     ContactDetails cd = new ContactDetails();
     cd.LoadByPrimaryKey(1);
     cd.Telephone = txtTelephone.Text;
     cd.Email = txtEMail.Text;
     cd.Location = txtLocation.Text;
     cd.Facebook = txtFacebook.Text;
     cd.Save();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BLL.ContactDetails objdata = new BLL.ContactDetails();
         objdata.LoadAll();
         txtFacebook.Text = objdata.Facebook;
         txtLocation.Text = objdata.Location;
         txtMail.Text = objdata.Email;
         txtTelephone.Text = objdata.Telephone;
     }
 }
        protected void btnSaveInfo_Click(object sender, EventArgs e)
        {
            BLL.ContactDetails objdata = new ContactDetails();
            objdata.LoadByPrimaryKey(1);
            objdata.Telephone = txtTelephone.Text;
            objdata.Email = txtMail.Text;
            objdata.Location = txtLocation.Text;
            objdata.Facebook = txtFacebook.Text;
            objdata.Save();

            ClientScript.RegisterStartupScript(this.GetType(), "getCKEditor", "$(#hfPageContect).val() = $('#txtPageContent').ckeditorGet();");
            BLL.PageContent objPC = new PageContent();
            objPC.LoadByPrimaryKey(1);
            objPC.PlaceHolder1 = hfPageContect.Value;
            objPC.Save();
            Response.Redirect("ManageContactInformation.aspx");
        }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                try
                {
                    ContactDetails con = new ContactDetails();
                    con.LoadByPrimaryKey(1);
                    txtEMail.Text = con.Email;
                    txtFacebook.Text = con.Facebook;
                    txtLocation.Text = con.Location;
                    txtTelephone.Text = con.Telephone;

                }
                catch (Exception)
                {
                }

            }
        }