Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing the SideBar after parsing an aspx page.

28 views
Skip to first unread message

whitehorse

unread,
Feb 15, 2006, 6:58:27 PM2/15/06
to
I am using a wizard control in my asp.net application. I use business
objects to determine if wizard steps are available/complete/incomplete. The
logic for determining a steps status can only be determined after page events
(wizard navigation ie Next/Previous).

This is what I have so far...

<SideBarTemplate>
<asp:DataList ID="SideBarList" runat="server">
<ItemTemplate>
<nobr>
<div style="vertical-align:middle" id="LinkDiv" runat="server"
visible='<%# (GetStepVisabillity(Container)).toString()%>'>
<%#GetStepLabelHTML(Container)%>
<asp:LinkButton ID="SideBarButton" runat="server"
CssClass='<%# (GetStepCSSClass(Container))%>' />
</div>
<div style="vertical-align:middle" id="TextDiv" runat="server"
visible='<%# (Not
GetStepVisabillity(Container)).toString()%>'>
<%#GetStepLabelHTML(Container)%>
<asp:Label ID="TextLabl" runat="server"
Text='<%# CType(Container.DataItem, WizardStep).Title %>'
CssClass='<%# (GetStepCSSClass(Container))%>'></asp:Label>
</div>
</nobr>
</ItemTemplate>
</asp:DataList>
</SideBarTemplate>

GetStepVisabillity, GetStepVisabillity and GetStepCSSClass are page level
methods.

The problem is that this template is parsed before even the page_load event.
The state of the steps is not known until after events are processed.

Is there a way to get around this?
Maybe by hooking into some kind of event when the Sidebar is rendered?

0 new messages