Youtube Video Autoplay i popup JAVASCRIPT 2021 - Thercb

1858

RUP DPMPTSP KOTA DUMAI TAHUN 2017 - RUP 2017.pdf

Also most of the hacks provided online does not support cross-browser. I want to show a PDF in my modal pop-up. public IActionResult PdfPartial (int id) { ViewBag.Id = id; return PartialView ("_PartialDocumentPreview"); } public async Task ShowModalDocument (int id) { var file = _docs.GetDocument (id); file.Contents = await _docs.Download (doc); var contentDisposition = new System.Net.Mime.ContentDisposition { FileName = file.Title, Inline = true }; Response.Headers.Add ("Content-Disposition", contentDisposition.ToString ()); var It's inside a menulist item that when clicked, it displays a modal window with the corresponding static pdf file. The anchor tag sample is as follows: Fence ; return View("Error"); } var deserializedResult = JsonConvert.DeserializeObject(apiResultPdf.ToString()); // return a File action to the object tag return File (deserializedResult.pdf, "application/pdf"); } Index.cshtml