Getting reference to a control inside a SideBarTemplate

A

Andy B

I have to get a reference to the DataList in the following code and don't
know how to do it. Any ideas?

<asp:Wizard ID="CreateContractWizard" runat="server" ActiveStepIndex="0"
CancelButtonType="Link" CancelDestinationPageUrl="~/Admin/index.aspx"
DisplayCancelButton="True" FinishCompleteButtonText="Create contract"
FinishCompleteButtonType="Link"
FinishDestinationPageUrl="~/Admin/index.aspx"
FinishPreviousButtonType="Link" SkipLinkText="" StartNextButtonType="Link"
StepNextButtonType="Link" StepPreviousButtonType="Link" Width="100%"
CssClass="NumberedList" EnableViewState="False">

<SideBarTemplate>


<!-- The following sidebar is currently used. -->

<div class="DivAsHeaderText" id="WizardSidebarDiv">

Contract creation steps.

</div>

<ol class="NumberedList">

<asp:DataList ID="SideBarList" runat="server">

<ItemTemplate>

<li><asp:LinkButton ID="SideBarButton" runat="server"></asp:LinkButton></li>

</ItemTemplate>

<SelectedItemStyle Font-Bold="True" />

</asp:DataList>

</ol>

</SideBarTemplate>



<!-- Wizard content -->

</asp:Wizard>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top