0
I would like to use a modal bootstrap in an ASP.NET Core application without MVC (non-MVC), where the text displayed in the modal-body section is dynamic (Actually, I’m looking for a user-friendly way to track a process that, depending on the amount of records, will take time to run).
I tried to do it that way:
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Processando...</h4>
</div>
<div class="modal-body">
<p>@Model.ProcessMessage</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
And @Model.Processmessage is changed every step of the way. But these changes were not reflected in the modal.
You will need to create a URL that will return your progress from the process id. In your HTML you will need to call the URL via javascript or jquery.
– phduarte