<div id="VideoTerm" runat="server" visible=False> <P></P> <HR SIZE=1 Class=Ligne> <FONT class=Titre2> <asp:Label ID="LabelGenericStepX" runat="server" Text=""></asp:Label> <asp:Label ID="LabelTermsConditions" runat="server" Text=""></asp:Label> </FONT> <P></P> <asp:Label ID="LabelVideoTerm" runat="server" Text=""></asp:Label> <P></P> <asp:CheckBox ID="IAgree" runat="server" /><asp:Label ID="LabelGenericIAgree" runat="server" Text=""></asp:Label> </div>Even if the interface doesn't have a control for the DIV, it is still posible to add the regular HTML DIV control and manually assign it an ID and the runat syntax. Thus, from the code behind, we can then do:
Dim loControlDIV As System.Web.UI.HtmlControls.HtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl ' If this is a video If loRowStore("NoVideo") Then loControlDIV = oApp.oPage.FindControl("VideoTerm") loControlDIV.Visible = True End If