public ActionResult FileExists(string File) { var contentRoot = Directory.GetCurrentDirectory(); var webRoot = Path.Combine(contentRoot, "wwwroot"); if (System.IO.File.Exists(Path.Combine(webRoot, Base64.Base64ToString(File)))) { if (!IsFileInUse(Path.Combine(webRoot, Base64.Base64ToString(File)))) { return(Json(new { Exists = true, File = "\\" + Base64.Base64ToString(File) })); } else { return(Json(new { Exists = false })); } } else { return(Json(new { Exists = false })); } }
//[ValidateInput(false)] public ActionResult ck(demock Text) { NLogger.Info(Text.rules); NLogger.Info(Base64.Base64ToString(Text.rules)); return(Operation(true, Text.rules)); }
private void Base64DecryptButton_Click(object sender, EventArgs e) { textBox3.Text = Base64.Base64ToString(textBox1.Text); }