예제 #1
0
        protected void Unnamed_Click(object sender, EventArgs e)
        {
            LinkButton _lnk    = (LinkButton)sender;
            DataTable  _dttemp = csql.getBusiness_Details("SmartConcepcion", Convert.ToInt64(_lnk.ToolTip));

            header.InnerText = "Update Business Details";

            txtBusiness.Text             = _dttemp.Rows[0]["businessname"].ToString();
            txtOwner.Text                = _dttemp.Rows[0]["owner"].ToString();
            txtDescription.Text          = _dttemp.Rows[0]["description"].ToString();
            txtPermit.Text               = _dttemp.Rows[0]["permitno"].ToString();
            txtStbldgno.Text             = _dttemp.Rows[0]["stnobldg"].ToString();
            txtContact.Text              = _dttemp.Rows[0]["contactno"].ToString();
            txtEmail.Text                = _dttemp.Rows[0]["email"].ToString();
            ddBusinessType.SelectedValue = _dttemp.Rows[0]["businessTypeID"].ToString();

            p_UserProfileID = Convert.ToInt64(_dttemp.Rows[0]["ID"].ToString());
            upIncidentInfo.Update();
        }