How can I open the "Complete ASP.Net Wizard" button in code?

I have an asp.net wizard assistant with the "finish" button defined in FinishNavigationTemplate . I would like to access this button in the code to give it focus if the wizard is not completed.

I tried to make FindControl on the WizardStep as follows:

 Button b = (Button) wsReviewOrder.FindControl("FinishButton"); 

I tried doing FindControl throughout the control wizard like this:

 Button b = (Button) wCheckout.FindControl("FinishButton"); 

None of them worked for me.

+4
source share
1 answer

I came across this post that helped me get an answer:

http://forums.asp.net/t/903710.aspx

This is what worked for me:

 Button b = (Button)wCheckout.FindControl("FinishNavigationTemplateContainerID").FindControl("FinishButton"); 
+5
source

Source: https://habr.com/ru/post/1301870/


All Articles