Reputation: 1462
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?
Upvotes: 0
Views: 982
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
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