version:asp .net core 3.x
blazor server Modal
Table of Contents
1.Build Custom Razor Components without event
create ModalPrompt.cshtml wthout ModalPrompt.cshtml.cs
\src\RazorComponent\Stockso.RazorComponent\Components\Shared\ModalPrompt.cshtml
2.use
\src\RazorComponent\Stockso.RazorComponent\Components\Pages\StockDataDatabase\StockDataDatabaseStockInfo_Search.cshtml
2.Build Custom Razor Components with event
step 1:
\src\BlazorServer\Stockso.BlazorServer\Shared\ModalPromptComponent_KLine.razor
step 2: UI
\src\BlazorServer\Stockso.BlazorServer\Pages\StockDataDatabase\StockDataDatabaseStockInfo_Search.razor
step 3: use
\src\BlazorServer\Stockso.BlazorServer\Pages\StockDataDatabase\StockDataDatabaseStockInfo_Search.razor
.Net 8.x
https://onexception.dev/news/1319949/manually-showing-bootstrap5-modal-in-blazor