Hello Shail,
You have to use JQuery to create such type of popups. Try the below Codes,
In Aspx Page,
<body>
<div id="panel">
<input type="button" class="button" value="Cart" id="btn1" />
<!--Popup Box-->
<div class="dialog" id="myform">
<form>
<b>Cart Items</b> : <i>Fastrack Backpack</i> - 1299/-
<div>
<input type="button" value="Continue Shopping" id="btnOK" />
<input type="button" value="Place Order" />
</div>
</form>
</div>
</div>
</body>
Include following JQuery,
<script type="text/javascript">
$(function () {
$(".button").click(function () {
$("#myform").show();
});
$("#btnOK").click(function () {
$("#myform").hide();
});
});
</script>
And finally your CSS,
.button{
border:1px solid green;
background:yellowgreen;
}
.button:hover{
background:lightgreen;
}
.dialog{
border:2px solid steelblue;
border-radius:5px;
padding:10px;
background:lightblue;
position:absolute;
display:none;
}
.dialog label{
display:inline-block;
color:brown;
}
input[type=text]{
border:1px solid #333;
display:inline-block;
margin:5px;
}
#btnOK{
border:1px solid purple;
background:lightpink;
margin:5px;
}
#btnOK:hover{
border:1px solid #000;
background:#ffacac;
}
This works great !!!!!
Thanks & Regards,
Krishna
Shail, if this helps please login to Mark As Answer. | Alert Moderator