I have an asp.net wizard control which opens in a modal popup. It works nicely for the most part. User clicks a link, and the user can click thru wizard while the background is disabled.
However now I find I have the need to disable the Finish button on the last page of the wizard upon a certain event, but it seems not to be accessible. I can't believe it isn't accessible at all, there MUST be a way, right? So far, everything I try throws a javascript error "Object Reference not set to an instance of an object". If I hit view>source, I can't seem to find the control rendered anywhere.
in my wizard aspx, i have templates defined like so:
vb code that i tried which doesn't find the control looks like:
Need help! This is a showstopper for me! I think it may have something to do with the fact that the wizard lives on a modalpopupextender control, (am i right?) but danged if I can find how to access it to do what I want!!!!
However now I find I have the need to disable the Finish button on the last page of the wizard upon a certain event, but it seems not to be accessible. I can't believe it isn't accessible at all, there MUST be a way, right? So far, everything I try throws a javascript error "Object Reference not set to an instance of an object". If I hit view>source, I can't seem to find the control rendered anywhere.
in my wizard aspx, i have templates defined like so:
Code:
<FinishNavigationTemplate>
<asp:Button ID="btnPrevWiz4" runat="server" Text="PreviousX" >
<asp:Button ID="btnFinishWiz4" runat="server" Text="FinishX" />
<asp:Button ID="btnCancelWiz4" runat="server" Text="CancelX" />
</FinishNavigationTemplate>
vb code that i tried which doesn't find the control looks like:
Code:
'This doesn't work:
'Dim btnFinishWiz4 As Button = Me.wizNewPlacementStep4.FindControl("btnFinishWiz4")
'..and neither does this
Dim btnFinishWiz4 As Button = Me.panNewPlacement2.FindControl("updNewPlacement").FindControl("wizNewPlacement").FindControl("btnFinishWiz4")
'this is what i'm trying to do: disble the button when certain circumstances exist:
btnFinishWiz4.Enabled = False
Need help! This is a showstopper for me! I think it may have something to do with the fact that the wizard lives on a modalpopupextender control, (am i right?) but danged if I can find how to access it to do what I want!!!!