示例#1
0
        protected void lnkEdit_OnClick(object sender, EventArgs e)
        {
            string pjCode = (sender as LinkButton).CommandArgument;

            SqlConnClass viewProject = new SqlConnClass();

            DataTable theProject = viewProject.ViewSingleProject(pjCode);

            txtProjectCode.Text  = theProject.Rows[0]["Project_Code"].ToString().Trim();
            txtProjectTitle.Text = theProject.Rows[0]["Project_Title"].ToString();
            txtDueDate.Text      = theProject.Rows[0]["Due_Date"].ToString();

            DisableBox(false);
            txtProjectCode.ReadOnly = true;
            ButtonStatus(false, true);
        }