Setting LinkButton Title in ASP.Net Wizard Sidebar Template
<p>Playing around with customizing the appearance of the Wizard control in ASP.Net, and I've found out how to disable the sidebar buttons using the SideBarTemplate and catching the OnItemDataBound event.  All pretty easy.  What I want to do now is to modify the text of the rendered LinkButton to prefix the step name with something like ">>" for the current step.</p>

<p>So, in my ItemDataBound event handler for the SideBarList, I have the following code:</p>

<pre><code>    Dim stepCurrent As WizardStep = e.Item.DataItem
    Dim linkCurrent As LinkButton = e.Item.FindControl("SideBarButton")
    If Not stepCurrent Is Nothing Then
        Trace.Write("SideBar", "Current Step = " &amp; stepCurrent.Wizard.ActiveStep.Name)
        Trace.Write("Sidebar", "Link Button = " &amp; linkCurrent.Text)
        linkCurrent.Enabled = False
        If stepCurrent.Wizard.ActiveStepIndex = e.Item.ItemIndex Then
            linkCurrent.Style.Add(HtmlTextWriterStyle.Color, "#000000")
            linkCurrent.Style.Add(HtmlTextWriterStyle.FontWeight, "bold")
            linkCurrent.Text.Insert(0, "&gt;&gt; ")
        End If
    End If
</code></pre>

<p>However, what I find is the trace output is showing an empty string for the lunkbutton text, but the style changes work.</p>

<p>Am I trying to set the text in the wrong place?</p>

<p>Thanks</p>
