Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 891131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:50:31+00:00 2026-05-15T13:50:31+00:00

Playing around with customizing the appearance of the Wizard control in ASP.Net, and I’ve

  • 0

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.

So, in my ItemDataBound event handler for the SideBarList, I have the following 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 = " & stepCurrent.Wizard.ActiveStep.Name)
        Trace.Write("Sidebar", "Link Button = " & 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, ">> ")
        End If
    End If

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

Am I trying to set the text in the wrong place?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:50:32+00:00Added an answer on May 15, 2026 at 1:50 pm

    I did not find any way to change “SideBarButton” text property that is why I added
    another link button control in SelectedItemTemplate to DataList and set visible=”fasle” in SideBarButton. SelectedItemTemplate will be used to render item in sidebar for current wizard step.

    
        <ItemTemplate>
            <asp:LinkButton ID="SideBarButton" runat="server"/>
        </ItemTemplate>
        <SelectedItemTemplate>
            <asp:LinkButton ID="ActiveSideBarButton" runat="server">
            <asp:LinkButton Visible="false" ID="SideBarButton"unat="server"/>
        </SelectedItemTemplate>
    

    In OnItemDataBound event do something like

    
    Dim stepCurrent As WizardStep = e.Item.DataItem
    If stepCurrent.Wizard.ActiveStepIndex = e.Item.ItemIndex Then
         Dim linkCurrent As LinkButton = e.Item.FindControl("ActiveSideBarButton")
         linkCurrent.Style.Add(HtmlTextWriterStyle.Color, "#000000")
         linkCurrent.Style.Add(HtmlTextWriterStyle.FontWeight, "bold")
         LinkCurrent.Text = stepCurrent.Title;
         linkCurrent.Text.Insert(0, ">> ")
    End If
    

    SideBarButton will not be rendered because of visible=”false” and only ActiveSideBarButton for current step will be rendered with parameters you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Playing around with MongoDB and NoRM in .NET. Thing that confused me - there
Just playing around with some of the APIs in .NET and I can't seem
Playing around with generating text randomly with each page refresh using php. Is there
I've been playing around with type deduction/printing using templates with code of the form:
Playing around with Flask and just wanted to print out some data as JSON
in playing around with the idea of using a webservice for my project I
I'm playing around with writing a web app. In this case, I'm using scotty
Playing around with xpath expressions trying to learn it. I found a code snippet,
Playing around with http://tympanus.net/Tutorials/CufonizedFlyOutMenu/ I dropped the fly-in descriptions and now trying to get
While playing around with eBay .NET SDK, I ran into an issue. I couldn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.