hi ravi, To open a pop up message box, create a java-script function as shown below:
<script type="text/javascript"> function openPopup() { var answer = confirm("Are you sure"); } </script>
then call that function wherever you want. I call it on the click of hyperlink. <%: Html.ActionLink("Open Popup", "Index", "Home", new { id = "popup", onclick = "openPopup()" })%> you can modify your popup box with the help of java-script and css. Here I had simply given a demo.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
To open a pop up message box, create a java-script function as shown below:
then call that function wherever you want. I call it on the click of hyperlink.
<%: Html.ActionLink("Open Popup", "Index", "Home", new { id = "popup", onclick = "openPopup()" })%>
you can modify your popup box with the help of java-script and css. Here I had simply given a demo.