Click here to Skip to main content
15,917,060 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Plz anybody give a solution to have Information, confirmation messagebox in asp.net or any dll available for that...
Posted
Comments
[no name] 17-Mar-12 22:44pm    
What? Your comment does not make any sense. And it's not even a question.
[no name] 17-Mar-12 23:15pm    
Try javascript's confirm(). Otherwise, clarify what you want.
Gopal Rakhal 18-Mar-12 2:20am    
I want Information messagebox and Confirmation messagebox in C# asp.net

use this script
XML
<script type="text/javascript">
        function confirmation() {
            if (confirm('are you sure you want to delete ?')) {
            return true;
            }else{
            return false;
            }
        }
    </script>



and in ur button call the function

ASP.NET
<asp:button id="Button1" runat="server" text="Button" 
        OnClientClick="return confirmation();" onclick="Button1_Click"/>
 
Share this answer
 
v3
Comments
[no name] 18-Mar-12 20:25pm    
<script type="text/javascript">
function confirmation() {
return (confirm('are you sure you want to delete ?'));
}
</script>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900