<input type="text" class="form-control" id="txtProjectCreateProjectCode"
placeholder="Project Code" required oninput="if (this.value.length > 50) this.value = this.value.slice(0, 50);" name="CreateProject.Code" value="">Bootstrap 5 Logout confirmation for .net core
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h1 class="modal-title fs-5" id="exampleModalLabel">Logout Confirmation</h1> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> Are you sure you want to sign out? </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <form id="logoutForm" asp-action="logoff" asp-controller="Auth" class="navbar-right"> <a class="btn btn-primary" @* onclick="return alert('Are you sure do you want to sign out?')" *@ href="javascript:document.getElementById('logoutForm').submit()"><i class="mdi mdi-logout me-1"></i><span>Logout</span></a> </form> </div> </div> </div> </div>
<a href="javascript:void(0);" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#exampleModal"> <i class="mdi mdi-logout me-1"></i> Logout </a>
Subscribe to:
Posts (Atom)