当前位置: 首页>>代码示例>>C#>>正文


C# Certificate.Save方法代码示例

本文整理汇总了C#中Certificate.Save方法的典型用法代码示例。如果您正苦于以下问题:C# Certificate.Save方法的具体用法?C# Certificate.Save怎么用?C# Certificate.Save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Certificate的用法示例。


在下文中一共展示了Certificate.Save方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btnDeleteCurrentFile_Click

 protected void btnDeleteCurrentFile_Click(object sender, EventArgs e)
 {
     Certificate objData = new Certificate();
     objData = CurrentCertificate;
     objData.SetColumnNull(Certificate.ColumnNames.Path);
     objData.Save();
     txtCurrentFile.Text = "";
     txtCurrentFile.Visible = false;
     btnDeleteCurrentFile.Visible = false;
     lblCurrentFile.Visible = false;
 }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:11,代码来源:certificateManagement.aspx.cs

示例2: uiButtonSave_Click

        protected void uiButtonSave_Click(object sender, EventArgs e)
        {
            Certificate objdata = new Certificate();
            if (CurrentCertificate == null)
            {
                objdata.AddNew();
                objdata.CreatedBy = new Guid(Membership.GetUser().ProviderUserKey.ToString());
                objdata.CreatedDate = DateTime.Now;
            }
            else
                objdata = CurrentCertificate;
            objdata.Name = uiTextBoxTitle.Text;

            if (Session["CurrentUploadedFiles"] != null)
            {
                Hashtable Files;
                Files = (Hashtable)Session["CurrentUploadedFiles"];

                if (Files.Count > 0)
                {
                    foreach (DictionaryEntry item in Files)
                    {
                        objdata.Path = item.Value.ToString();
                    }

                    Session["CurrentUploadedFiles"] = null;
                }
            }

            objdata.Save();
            BindData();
            CurrentCertificate = null;
            uiPanelViewAll.Visible = true;
            uiPanelEdit.Visible = false;
            ClearFields();

            SendingNotifications.sendNotif(7, null, null, null, null, null,null,null);
        }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:38,代码来源:certificateManagement.aspx.cs

示例3: uiRadGridcirculars_ItemCommand

        protected void uiRadGridcirculars_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == "EditCir")
            {
                Certificate objData = new Certificate();
                objData.LoadByPrimaryKey(Convert.ToInt32(e.CommandArgument.ToString()));

                uiTextBoxTitle.Text = objData.Name;

                //uiTextBoxCreatedBy.Text = objData.CreatedBy;

                if (!objData.IsColumnNull(Certificate.ColumnNames.Path))
                {
                    txtCurrentFile.Visible = true;
                    btnDeleteCurrentFile.Visible = true;
                    lblCurrentFile.Visible = true;
                    txtCurrentFile.Text = objData.Path.Substring(objData.Path.LastIndexOf('/') + 1);
                }

                CurrentCertificate = objData;
                uiPanelEdit.Visible = true;
                uiPanelViewAll.Visible = false;
            }

            else if (e.CommandName == "DeleteCir")
            {
                Certificate objData = new Certificate();
                objData.LoadByPrimaryKey(Convert.ToInt32(e.CommandArgument.ToString()));
                objData.MarkAsDeleted();
                objData.Save();
                BindData();
            }
        }
开发者ID:menasbeshay,项目名称:ivalley-svn,代码行数:33,代码来源:certificateManagement.aspx.cs


注:本文中的Certificate.Save方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。