Click here to Skip to main content
15,885,165 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a ajax basex modal popup having two girdview which can update and delete records and have cancel button.I want to hide the modal popup only click on the cancel button.But when i click on update or delete button on gridview the disappear automatically.
Posted
Comments
Sergey Alexandrovich Kryukov 8-Dec-13 14:54pm    
Of course, you can reproduce the state of the page after the postback, but I would question your general page design. Perhaps, using postback with the modal dialog/popup technique is not the best option; think about using Ajax without postbacks.
—SA
Nandakishore G N 8-Dec-13 23:33pm    
sandip.. add the modalpopupextenderid.show() in codebehind and try..

1 solution

Use ajax(jquery) to post the data for deleting and updating...

JavaScript
$.ajax({
            url: yoururl,
            type: 'POST',
            data: $('#your form Id').serialize(),
            async: false,
            success: function (result) {
                if (result.Success) {
               
                   // write your after save event
                    
                }

            }
        });


for serializing, you have to use json2.
 
Share this answer
 
v2

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