コード例 #1
0
        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 }));
            }
        }
コード例 #2
0
 //[ValidateInput(false)]
 public ActionResult ck(demock Text)
 {
     NLogger.Info(Text.rules);
     NLogger.Info(Base64.Base64ToString(Text.rules));
     return(Operation(true, Text.rules));
 }
コード例 #3
0
 private void Base64DecryptButton_Click(object sender, EventArgs e)
 {
     textBox3.Text = Base64.Base64ToString(textBox1.Text);
 }