In the webforms application, I am trying to conditionally set the CssClass for this panel like this, but it does not work...
<asp:Panel ID="pnlFooter" runat="server" Width="26.67cm" CssClass="">
<% If (prpLastVID() = Eval("UID_VEHICLE")) Then
CType(lstView.FindControl("pnlFooter"), Panel).Attributes("CssClass")="RPT_footer"%>
I need to apply the cssClass "RPT_footer" only when the last vehicle record/row is being placed into the lstView so that the footer appears at the bottom of the page.
CSS: (.RPT_footer { position: absolute; bottom: 0; width:100%; } ).
Any suggestions will be very welcome.