diff --git a/Common/PdfViewer in Popup window/PdfViewer in Popup window/Pages/Index.razor b/Common/PdfViewer in Popup window/PdfViewer in Popup window/Pages/Index.razor
index 0ef01fc..bdb1ed9 100644
--- a/Common/PdfViewer in Popup window/PdfViewer in Popup window/Pages/Index.razor
+++ b/Common/PdfViewer in Popup window/PdfViewer in Popup window/Pages/Index.razor
@@ -6,8 +6,9 @@
Open PDF Viewer
-
-
+
+
+
@@ -15,14 +16,14 @@
public SfPdfViewer2 Viewer { get; set; }
SfDialog Dialog;
- public void OnClick(MouseEventArgs args)
+ public async void OnClick(MouseEventArgs args)
{
- this.Dialog.ShowAsync();
+ await this.Dialog.ShowAsync();
}
- public void OnOpen(BeforeOpenEventArgs args)
+ private async void created()
{
- Viewer.LoadAsync(DocumentPath, null);
+ await Viewer.LoadAsync(DocumentPath, null);
}
public string DocumentPath { get; set; } = "wwwroot/data/PDF_Succinctly.pdf";
public string Header { get; set; } = "PDF Viewer";