Accessing button on wizard control
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I am trying (and failing miserably) to access a button in the custom navigation section of a custom template step on a wizard control. I need to set its validation group - however, the code fails when trying to find the control. Here's the code I am trying to use: Button Test1NextButton = (Button)Test1.ContentTemplateContainer.FindControl("Test1NextButton"); Test1NextButton.ValidationGroup = "1" + NewValidationGroupNumber.ToString(); Can anyone tell me what I am doing wrong ?