Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            String     strConnString   = ConfigurationManager.ConnectionStrings["ConnStringDeltoneCRM"].ConnectionString;
            CompanyDAL deltone_Company = new CompanyDAL(strConnString);
            int        CompanyID       = Int32.Parse(Request.Form["CompanyID"].ToString());
            String     strCompanyName  = Request.Form["CompanyName"].ToString();
            String     WebSite         = Request.Form["WebSite"].ToString();
            String     CompnayOwner    = Request.Form["AccountOwner"].ToString();
            String     OwnershipPeriod = Request.Form["OwnershipPeriod"].ToString();
            string     strScript       = "<script language='javascript'>$(document).ready(function (){ alert('" + CompnayOwner + "' });</script>";

            ScriptManager.RegisterStartupScript(this, this.GetType(), "PopupCP", strScript, false);
            var loggedinUserId = Convert.ToInt32(Session["LoggedUserID"].ToString());

            Response.Write(deltone_Company.EditCompnay(CompanyID, strCompanyName, WebSite, CompnayOwner, OwnershipPeriod, loggedinUserId));
        }