Hi all,
I have an asp wizard with many steps and with a sidebar template .
sidebar template is like this

<SideBarTemplate >
<asp:DataList ID="SideBarList" runat="server">
<ItemTemplate >
<asp:ImageButton AlternateText ="Test" ID="SideBarButton" runat="server" ImageUrl='<%#GetStepImage( (string)Eval("Title") )%>' />
<asp:Label ID="lblStepName" runat="server" Text='<%#GetStepTitle( (string)Eval("Title") )%>'></asp:Label>
</ItemTemplate>
<SelectedItemTemplate>
<asp:ImageButton ID="SideBarButton" runat="server" ImageUrl='<%#GetSelectedStepImage((string)Eval("Title") )%>' />
<asp:Label ID="lblStepName" runat="server" Text='<%#GetStepTitle( (string)Eval("Title") )%>'></asp:Label>
</SelectedItemTemplate>
</asp:DataList>
</SideBarTemplate>

I need to change the image after next button click of each step from code behind.
How can we access the SideBarButton for the active step from code behind and change the url of that
I heve been playing around this issue for more than a day ..please help
Thanks,
Anish

Better post in the ASP.NET Forum and also wrap your code in tag.[code ] tag.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.