本文整理汇总了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;
}
示例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);
}
示例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();
}
}