Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want show modal pop up control on my page with two buttons ,one for yes & other for No . In my asp.net page registration information is there and one button for saving the data into database ,but I want display this registration information to pop up for client confirmation and I want to give two options for client to save the data in database by giving two options (yes -button, no-button) .In previous I was set pop up on page save button and save information code in Yes -button of pop up ,But problem is that ,no action is doing in that Yes-button click of pop up....

in short I want to raise pop up on page button and save information in pop up control button....
Posted

try below link,

[Link 1]

[Link 2]
 
Share this answer
 
You are looking for Confirm box[^] (scroll down to confirm box, or Google for more examples).
See an example here - http://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm[^]
 
Share this answer
 
Try this

Asp.net Page Codebehind add in pageload

Button1.Attributes.Add("onclick", "return Popup();");


In the head tag of the page source add the following script

<script type="text/javascript">
function Popup()
{
    var result = confirm("Enter Message to Show");
    if(result)
        return true;
     else
        return false;
}
</script>
 
Share this answer
 

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