Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

how can open modal automatically when there is a message in tempdata

$
0
0

Hi, 

how can I open modal automatically when there is a message in tempdata

@if (TempData["message"] != null)
    {<div id="infoValidationSummary" class="modal fade" tabindex="-1" role="dialog"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><h4 class="modal-title"><b>Warning</b></h4></div><div class="modal-body"><div class="form-horizontal">
                            @TempData["message"]</div></div><div class="modal-footer center-block"><button type="button" class="btn btn-primary btn-sm text-center" data-dismiss="modal">OK</button></div></div></div></div>


    }


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>