コード例 #1
0
ファイル: Registation.cs プロジェクト: tasherul/ERPCMS-Class
        private bool _UpdateDetails(UpdateClasses Details)
        {
            AntiInjection a = new AntiInjection();

            a.Url = true; a.FullName = true; a.Address = true;
            if (a.StringData(Details.FirstName) && a.StringData(Details.LastName) && a.StringData(Details.Region) && a.StringData(Details.Website) && a.StringData(Details.Discription))
            {
                bool returnVal = chk.ExcutionNonQuery("update DeveloperRegistation set Active='" + Details.Active + "',FastName='" + Details.FirstName + "',LastName='" + Details.LastName + "',Discription='" + Details.Discription + "', Website='" + Details.Website + "',Region='" + Details.Region + "',EmailShow='" + Details.EmailShow + "',NumberShow='" + Details.MobileShow + "' where Reg_ID=" + Details.RegID);
                Messege_ = chk.Messege;
                return(returnVal);
            }
            else
            {
                Messege_ = "Security Thread.";
                return(false);
            }
        }
コード例 #2
0
ファイル: Registation.cs プロジェクト: tasherul/ERPCMS-Class
 public bool UpdateDetails(UpdateClasses Details)
 {
     return(_UpdateDetails(Details));
 }