Esempio n. 1
0
        public void placeShenimet()
        {
            Index form = (Index)Context.Handler;
            int   ID   = form.SelectedID;

            ViewState["SelectedID"] = ID;

            BLL.LlojiHapsires   ex = new BLL.LlojiHapsires();
            LLojiHapsiresMapper em = new LLojiHapsiresMapper(ex);

            em.SelectedID(ID);

            LlojiTextBox.Text = ex.Lloji;
        }
Esempio n. 2
0
        protected void SaveButton_Click(object sender, EventArgs e)
        {
            if (LlojiTextBox.Text.Length == 0)
            {
                lblError.Visible = true;

                LlojiTextBox.Focus();
                return;
            }
            else
            {
                BLL.LlojiHapsires obj = new BLL.LlojiHapsires();
                obj.Lloji = LlojiTextBox.Text;

                LLojiHapsiresMapper objm = new LLojiHapsiresMapper(obj);
                objm.Insert();
                Response.Redirect("Index.aspx");
            }
        }