Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encapsulating HTML code within DIV at server
Message
From
02/09/2006 01:38:08
 
 
To
02/09/2006 01:24:54
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01150484
Message ID:
01150485
Views:
32
Well, as surprising as it gets, the following would work:
<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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform