ozkank
ozkank

Reputation: 1462

popup window according to CheckBox checked

If user don't checked, I want to show asp:ModalPopupExtender and get numeric value from this form.

I'm using asp.net wizard control. I don't know "finish" button id. Can somebody help me?

enter image description here

Upvotes: 0

Views: 982

Answers (2)

adripanico
adripanico

Reputation: 1058

You should set the target of the ModalPopupExtender as a dummy control, i.e., a hidden Button, LinkButton,... that never is going to be clicked by the user.

The Wizard control have a method called FinishButtonClick. Here is where you have to check the state of the CheckBox and show or not the popup calling to the method Show() of the ModalPopupExtender. You also can call to the Click() method of the hidden control or do it with JavaScript usign the BehaviourID of the ModalPopupExtender. Your choice.

Cheers!

Upvotes: 1

Kapil Khandelwal
Kapil Khandelwal

Reputation: 16144

To get "Finish" button id, just open the page in browser & view the rendered html code (Right Click -> View Source). From their you can get the finish button id.

And after getting "Finish" button id, you can easily associate a Client-Side event to do the required job.

Upvotes: 0

Related Questions