Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Open popup Form using bootstrap modal on button click in asp net c#

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<button data-target="#loginmodal" data-toggle="modal">Logins</button>
<div>
<div>
<div>
<div data-keyboard="false" data-backdrop="static" id="loginmodal" tabindex="-1">
<div>
<div>
<div>
<h4>Loin</h4>
<button data-dismiss="modal">&times;</button>
</div>
<div>
<form>
<div>
<label for="inputUserName">User Name</label>
<input type="text" placeholder="User Name" id="inputUserName" />
</div>
<div>
<label for="inputPassword">Password</label>
<input type="password" placeholder="Password" id="inputPassword" />
</div>
</form>
</div>
<div>
<button>Login</button>
<button data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js" integrity="sha384-+YQ4JLhjyBLPDQt//I+STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF" crossorigin="anonymous"></script>Copy
Source by rashicode.com #
 
PREVIOUS NEXT
Tagged: #Open #popup #Form #bootstrap #modal #button #click #asp #net
ADD COMMENT
Topic
Name
1+5 =