HTML KODLARI; (Boostrap 5 içindir)
<button type="button" id="mdlBTN" class="btn btn-primary d-none" data-bs-toggle="modal" data-bs-target="#myModal">-</button>
<div class="modal modal-lg class fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header py-2"><h6 class="modal-title">Başlık</h6><button type="button" class="btn-close" data-bs-dismiss="modal"></button></div>
<div class="modal-body">Detay</div></div>
</div>
</div>
Javascrip Kodu;
<script>$(document).ready(function () {$("#mdlBTN").trigger("click"); });</script>
C#,MVC,MSSQL,Windows Forms