#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 50, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Upload / Rtl</span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(101, 137, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            <div class=\"posupload\"> Select a file to upload</div>\r\n            ");
                EndContext();
                BeginContext(238, 216, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-upload-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7af80433a44c48fe9fa600a8a2725860", async() => {
                    BeginContext(424, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_UploadboxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_UploadboxProperties.SaveUrl = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_UploadboxProperties.RemoveUrl = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\Rtl.cshtml"
                __Syncfusion_JavaScript_Models_UploadboxProperties.EnableRTL = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("enable-rtl", __Syncfusion_JavaScript_Models_UploadboxProperties.EnableRTL, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(454, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(509, 193, true);
                WriteLiteral("\r\n    <style class=\"cssStyles\">\r\n        .frame {\r\n            width: 215px;\r\n        }\r\n\r\n        .posupload\r\n        {           \r\n            padding-bottom: 10px;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
 #pragma warning disable 1998
 public async override global::System.Threading.Tasks.Task ExecuteAsync()
 {
     DefineSection("SampleHeading", async() => {
         BeginContext(23, 62, true);
         WriteLiteral("\r\n    <span class=\"sampleName\">Upload / Web API Service</span>");
         EndContext();
     }
                   );
     DefineSection("ControlsSection", async() => {
         BeginContext(113, 134, true);
         WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            <div class=\"posupload\">Select a file to upload</div>\r\n          ");
         EndContext();
         BeginContext(247, 223, false);
         __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-upload-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6d7a59b7bf6c442194569e70382755d1", async() => {
             BeginContext(443, 11, true);
             WriteLiteral("\r\n         ");
             EndContext();
         }
                                                                     );
         __Syncfusion_JavaScript_Models_UploadboxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxProperties>();
         __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxProperties);
         __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
         __Syncfusion_JavaScript_Models_UploadboxProperties.SaveUrl = (string)__tagHelperAttribute_1.Value;
         __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
         __Syncfusion_JavaScript_Models_UploadboxProperties.RemoveUrl = (string)__tagHelperAttribute_2.Value;
         __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
         __Syncfusion_JavaScript_Models_UploadboxProperties.UploadName = (string)__tagHelperAttribute_3.Value;
         __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
         await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
         if (!__tagHelperExecutionContext.Output.IsContentModified)
         {
             await __tagHelperExecutionContext.SetOutputContentAsync();
         }
         Write(__tagHelperExecutionContext.Output);
         __tagHelperExecutionContext = __tagHelperScopeManager.End();
         EndContext();
         BeginContext(470, 30, true);
         WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
         EndContext();
     }
                   );
     DefineSection("StyleSection", async() => {
         BeginContext(525, 209, true);
         WriteLiteral("\r\n    <style class=\"cssStyles\">\r\n        .posupload {\r\n            padding: 10px;\r\n            text-align: center;\r\n        }\r\n\r\n        #UploadDefault {\r\n            margin: 0 auto;\r\n        }\r\n    </style>\r\n");
         EndContext();
     }
                   );
 }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 57, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Upload / File Input</span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(108, 112, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            <div class=\"posupload\"> \r\n                ");
                EndContext();
                BeginContext(220, 252, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-upload-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5be29907aa00453db8d2497322b9f34d", async() => {
                    BeginContext(438, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_UploadboxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Error = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_UploadboxProperties.SaveUrl = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_UploadboxProperties.RemoveUrl = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
#line 7 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\FileTypesInput.cshtml"
                __Syncfusion_JavaScript_Models_UploadboxProperties.MultipleFilesSelection = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("multiple-files-selection", __Syncfusion_JavaScript_Models_UploadboxProperties.MultipleFilesSelection, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(472, 51, true);
                WriteLiteral("\r\n             </div>\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(553, 720, true);
                WriteLiteral(@"
    <div class=""row"">
        <div class=""col-md-3"">
            Extensions:
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            <input type=""text"" id=""fileallow"" class=""tb6 ejinputtext"" placeholder=""Format"" />
        </div>
        <div class=""col-md-3"">
            <input type=""button"" class=""e-btn"" id=""upbutton1"" value=""Allow"" />
        </div>
    </div>
    <div class=""row"">
        <div class=""col-md-3"">
            <input type=""text"" id=""filedeny"" class=""tb6 ejinputtext"" placeholder=""Format"" />
        </div>
        <div class=""col-md-3"">
            <input type=""button"" class=""e-btn"" id=""upbutton2"" value=""Deny"" />
        </div>
    </div>
");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1299, 1015, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        var uploadobject;
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
            $(""#upbutton1"").ejButton({
                click: ""allowfiletype"",
            });
            $(""#upbutton2"").ejButton({
                click: ""denyfiletype"",
            });

        });
        function allowfiletype() {
            uploadobject = $(""#UploadInput"").data(""ejUploadbox"");
            uploadobject.option('extensionsAllow', $(""#fileallow"").val());
            uploadobject.option('extensionsDeny', """");
            $(""#filedeny"").val('');
        }
        function denyfiletype() {
            uploadobject = $(""#UploadInput"").data(""ejUploadbox"");
            uploadobject.option('extensionsAllow', """");
            uploadobject.option('extensionsDeny', $(""#filedeny"").val());
            $(""#fileallow"").val('');
        }
        function onError(args) {
            alert(args.error);
        }
    </script>
");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(2339, 11, true);
                WriteLiteral("\r\n    <link");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 2350, "\"", 2405, 1);
#line 67 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\FileTypesInput.cshtml"
                WriteAttributeValue("", 2357, Url.Content("~/css/samples/uploadfiletype.css"), 2357, 48, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2406, 22, true);
                WriteLiteral(" rel=\"stylesheet\" />\r\n");
                EndContext();
            }
                          );
            BeginContext(2429, 1, true);
            WriteLiteral(" ");
            EndContext();
        }
Esempio n. 4
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 53, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Upload / Events</span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(104, 112, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            <div class=\"posupload\"> \r\n                ");
                EndContext();
                BeginContext(216, 465, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-upload-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "80710a8b90d1485db0fd994e5ee3169c", async() => {
                    BeginContext(647, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_UploadboxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_UploadboxProperties.SaveUrl = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_UploadboxProperties.RemoveUrl = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Create = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_UploadboxProperties.FileSelect = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Begin = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Cancel = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                __Syncfusion_JavaScript_Models_UploadboxProperties.InProgress = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Complete = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Remove = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Error = (string)__tagHelperAttribute_10.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Destroy = (string)__tagHelperAttribute_11.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
                __Syncfusion_JavaScript_Models_UploadboxProperties.Success = (string)__tagHelperAttribute_12.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_12);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(681, 50, true);
                WriteLiteral("\r\n            </div>\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(756, 112, true);
                WriteLiteral("\r\n    <style class=\"cssStyles\">\r\n        #UploadEvents {\r\n            margin: 0 auto;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
            DefineSection("EventsDropdown", async() => {
                BeginContext(895, 8, true);
                WriteLiteral("\r\n      ");
                EndContext();
                BeginContext(903, 154, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-drop-down-list", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7b291cd1b368423783256d73cc056a9f", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DropDownListProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DropDownListProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DropDownListProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_13);
                __Syncfusion_JavaScript_Models_DropDownListProperties.TargetID = (string)__tagHelperAttribute_14.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_14);
#line 21 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\Events.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.ShowCheckbox = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("show-checkbox", __Syncfusion_JavaScript_Models_DropDownListProperties.ShowCheckbox, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 21 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\Events.cshtml"
                __Syncfusion_JavaScript_Models_DropDownListProperties.CheckAll = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("check-all", __Syncfusion_JavaScript_Models_DropDownListProperties.CheckAll, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_DropDownListProperties.Change = (string)__tagHelperAttribute_15.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_15);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1057, 339, true);
                WriteLiteral(@"
    <div id=""evntname"">
        <ul>
            <li>fileSelect</li>
            <li>begin</li>
            <li>cancel</li>
            <li>inProgress</li>
            <li>complete</li>
            <li>remove</li>
            <li>error</li>
            <li>success</li>
            <li>destroy</li>
        </ul>
    </div>
");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(1422, 3482, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        function formatSize(bytes) {
            var i = -1;
            if (!bytes)
                return ""0.0KB"";
            do {
                bytes = bytes / 1024;
                i++;
            } while (bytes > 99);
            return Math.max(bytes, 0).toFixed(1) + ['KB', 'MB', 'GB', 'TB', 'PB', 'EB'][i];
        }

        function uploadload(e) {
            jQuery.addEventLog(""Upload box control has been <span class='eventTitle'> created </span>."");
        }
        function fileselect(e) {
            for (var i = 0; i < e.files.length ; i++) {
                jQuery.addEventLog(e.files[i].name + ""- file has been <span class='eventTitle'>selected </span>."");
            }
        }
        function fileuploadbegin(e) {
            jQuery.addEventLog(""Upload has been<span class='eventTitle'> started </span> -"" + e.files.name);
        }
        function fileuploadcancel(e) {
            jQuery.addEventLog(""Upload has been <span clas");
                WriteLiteral(@"s='eventTitle'>canceled </span>."");
        }
        function fileInprogress(e) {
            jQuery.addEventLog(""Upload <span class='eventTitle'>is InProgress</span> - "" + e.percentage + ""% - "" + e.file.name + "" ("" + formatSize(e.e.loaded) + "")."");
        }
        function fileuploadcomplete(e) {
            jQuery.addEventLog(""Upload action has been <span class='eventTitle'>completed </span>successfully ."");
        }
        function fileuploadremove(e) {
            jQuery.addEventLog(""Uploaded file has been <span class='eventTitle'> removed </span>successfully."");
        }
        function fileuploaderror(e) {
            jQuery.addEventLog(""Upload action has <span class='eventTitle'>thrown an error </span>."");
        }
        function fileuploadDestroy(e) {
            jQuery.addEventLog(""Upload control has been <span class='eventTitle'>destroyed </span>."");
        }
        function fileuploadsuccess(e) {
            jQuery.addEventLog(""Upload of "" + e.files.name + "" is <span c");
                WriteLiteral(@"lass='eventTitle'> success </span>."");
        }
        function onClear() {
            jQuery.clearEventLog();
        }
        function evtpropscheckedevent(args) {
            uploadObj = $(""#UploadEvents"").data(""ejUploadbox"");
            if (args.isChecked) {
                switch (args.selectedText) {
                    case ""create"": uploadObj.option(args.selectedText, ""uploadload""); break;
                    case ""fileSelect"": uploadObj.option(args.selectedText, ""fileselect""); break;
                    case ""begin"": uploadObj.option(args.selectedText, ""fileuploadbegin""); break;
                    case ""cancel"": uploadObj.option(args.selectedText, ""fileuploadcancel""); break;
                    case ""inProgress"": uploadObj.option(args.value, ""fileInprogress""); break;
                    case ""complete"": uploadObj.option(args.selectedText, ""fileuploadcomplete""); break;
                    case ""remove"": uploadObj.option(args.selectedText, ""fileuploadremove""); break;
             ");
                WriteLiteral(@"       case ""error"": uploadObj.option(args.selectedText, ""fileuploaderror""); break;
                    case ""success"": uploadObj.option(args.selectedText, ""fileuploadsuccess""); break;
                    case ""destroy"": uploadObj.option(args.selectedText, ""fileuploadDestroy""); break;
                }
            }
            else uploadObj.option(args.selectedText, null);
        }
    </script>
");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 61, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Upload / Drag And Drop </span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(112, 71, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n             ");
                EndContext();
                BeginContext(183, 259, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-upload-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1cb456d224b74d43893790e4a7d7928b", async() => {
                    BeginContext(412, 14, true);
                    WriteLiteral("\r\n            ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_UploadboxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_UploadboxProperties.SaveUrl = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_UploadboxProperties.RemoveUrl = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\DragAndDrop.cshtml"
                __Syncfusion_JavaScript_Models_UploadboxProperties.AllowDragAndDrop = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("allow-drag-and-drop", __Syncfusion_JavaScript_Models_UploadboxProperties.AllowDragAndDrop, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 6 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\DragAndDrop.cshtml"
                __Syncfusion_JavaScript_Models_UploadboxProperties.MultipleFilesSelection = true;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("multiple-files-selection", __Syncfusion_JavaScript_Models_UploadboxProperties.MultipleFilesSelection, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(442, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(497, 217, true);
                WriteLiteral("\r\n    <style class=\"cssStyles\">\r\n        .frame {\r\n            width: 500px;\r\n            height: 100px;\r\n        }\r\n\r\n        .control {\r\n            width: 100%;\r\n            height: 100%;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(740, 343, true);
                WriteLiteral(@"
 <script>
document.addEventListener('dragover',function(event){
    event.preventDefault();
    event.dataTransfer.dropEffect = 'none';
    return false;
	},false);
	document.addEventListener('drop',function(event){
    event.dataTransfer.dropEffect = 'none';
    event.preventDefault();
    return false;
  },false);
 </script>
");
                EndContext();
            }
                          );
            BeginContext(1086, 3, true);
            WriteLiteral(" \r\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("SampleHeading", async() => {
                BeginContext(23, 54, true);
                WriteLiteral("\r\n    <span class=\"sampleName\">Upload / Methods</span>");
                EndContext();
            }
                          );
            DefineSection("ControlsSection", async() => {
                BeginContext(105, 112, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            <div class=\"posupload\"> \r\n                ");
                EndContext();
                BeginContext(217, 207, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-upload-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bbd1ea68c2764e1f85036e8d1e0524cd", async() => {
                    BeginContext(390, 18, true);
                    WriteLiteral("\r\n                ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_UploadboxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __Syncfusion_JavaScript_Models_UploadboxProperties.SaveUrl = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                __Syncfusion_JavaScript_Models_UploadboxProperties.RemoveUrl = (string)__tagHelperAttribute_2.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(424, 51, true);
                WriteLiteral("\r\n             </div>\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(500, 113, true);
                WriteLiteral("\r\n    <style class=\"cssStyles\">\r\n        #UploadMethods {\r\n            margin: 0 auto;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
            DefineSection("PropertiesSection", async() => {
                BeginContext(643, 67, true);
                WriteLiteral("\r\n    <div class=\"row\">\r\n        <div class=\"col-md-12\"> \r\n        ");
                EndContext();
                BeginContext(710, 132, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-toggle-button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f1e3a3a0fc3340daa6f5b8bde8110098", async() => {
                }
                                                                            );
                __Syncfusion_JavaScript_Models_ToggleButtonProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.ToggleButtonProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_ToggleButtonProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
#line 23 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\Upload\Methods.cshtml"
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Size = ButtonSize.Mini;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("size", __Syncfusion_JavaScript_Models_ToggleButtonProperties.Size, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.DefaultText = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.ActiveText = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __Syncfusion_JavaScript_Models_ToggleButtonProperties.Change = (string)__tagHelperAttribute_6.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(842, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("ScriptSection", async() => {
                BeginContext(898, 410, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        $(function () {
            $(""#sampleProperties"").ejPropertiesPanel();
        });
        var target;
        function onCheckUncheckAll(args) {
            target = $(""#UploadMethods"").data(""ejUploadbox"");
            if (args.isChecked)

                target.disable();
            else
                target.enable();
        }
    </script>
");
                EndContext();
            }
                          );
        }
 #pragma warning disable 1998
 public async override global::System.Threading.Tasks.Task ExecuteAsync()
 {
     DefineSection("SampleHeading", async() => {
         BeginContext(23, 70, true);
         WriteLiteral("\r\n    <span class=\"sampleName\">Upload / Default Functionalities</span>");
         EndContext();
     }
                   );
     DefineSection("ControlsSection", async() => {
         BeginContext(121, 137, true);
         WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n            <div class=\"posupload\">Select a file to upload</div>  \r\n           ");
         EndContext();
         BeginContext(258, 303, false);
         __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-upload-box", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "cf0747694fec433086f06df7f6975bca", async() => {
             BeginContext(429, 17, true);
             WriteLiteral("\r\n               ");
             EndContext();
             BeginContext(446, 37, false);
             __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-button-text", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "ec2a4df95c764b978e73f99e69f276a9", async() => {
             }
                                                                         );
             __Syncfusion_JavaScript_Models_UploadboxButtonText = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxButtonText>();
             __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxButtonText);
             __Syncfusion_JavaScript_Models_UploadboxButtonText.Browse = (string)__tagHelperAttribute_0.Value;
             __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
             await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
             if (!__tagHelperExecutionContext.Output.IsContentModified)
             {
                 await __tagHelperExecutionContext.SetOutputContentAsync();
             }
             Write(__tagHelperExecutionContext.Output);
             __tagHelperExecutionContext = __tagHelperScopeManager.End();
             EndContext();
             BeginContext(483, 17, true);
             WriteLiteral("\r\n               ");
             EndContext();
             BeginContext(500, 32, false);
             __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-dialog-text", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4cd8ad2bf9ad41a98a2ee1ca84fdc9c2", async() => {
             }
                                                                         );
             __Syncfusion_JavaScript_Models_UploadboxDialogText = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxDialogText>();
             __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxDialogText);
             __Syncfusion_JavaScript_Models_UploadboxDialogText.Size = (string)__tagHelperAttribute_1.Value;
             __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
             await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
             if (!__tagHelperExecutionContext.Output.IsContentModified)
             {
                 await __tagHelperExecutionContext.SetOutputContentAsync();
             }
             Write(__tagHelperExecutionContext.Output);
             __tagHelperExecutionContext = __tagHelperScopeManager.End();
             EndContext();
             BeginContext(532, 13, true);
             WriteLiteral("\r\n           ");
             EndContext();
         }
                                                                     );
         __Syncfusion_JavaScript_Models_UploadboxProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.UploadboxProperties>();
         __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_UploadboxProperties);
         __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
         __Syncfusion_JavaScript_Models_UploadboxProperties.Width = (string)__tagHelperAttribute_3.Value;
         __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
         __Syncfusion_JavaScript_Models_UploadboxProperties.SaveUrl = (string)__tagHelperAttribute_4.Value;
         __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
         __Syncfusion_JavaScript_Models_UploadboxProperties.RemoveUrl = (string)__tagHelperAttribute_5.Value;
         __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
         await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
         if (!__tagHelperExecutionContext.Output.IsContentModified)
         {
             await __tagHelperExecutionContext.SetOutputContentAsync();
         }
         Write(__tagHelperExecutionContext.Output);
         __tagHelperExecutionContext = __tagHelperScopeManager.End();
         EndContext();
         BeginContext(561, 30, true);
         WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
         EndContext();
     }
                   );
     DefineSection("StyleSection", async() => {
         BeginContext(616, 206, true);
         WriteLiteral("\r\n    <style class=\"cssStyles\">\r\n        .posupload {\r\n            padding: 10px;\r\n            text-align: center;\r\n        }\r\n\r\n        #uploadbox1 {\r\n            margin: 0 auto;\r\n        }\r\n    </style>\r\n");
         EndContext();
     }
                   );
     BeginContext(825, 2, true);
     WriteLiteral("\r\n");
     EndContext();
 }