views:

446

answers:

1

How to close Modal Popup extender from server side code on click of close link in popup.

+1  A: 

Hi venlak,

there is a property in extender for closing popup " CancelControlID" give button id in it and popup will close,if you want to close popup from server side mean from code behind then there is extender property close(),in button code behind body write id of popup and enter "." after that you get all properties of popup in those property you get close property.use it hopefully you will get the solution

example

private void btnSubmit_Click(object sender, EventArgs e)
    {
      modelpopupextender.close();

    }
Emaad Ali