Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encapsulating HTML code within DIV at server
Message
De
02/09/2006 01:38:08
 
 
À
02/09/2006 01:24:54
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01150484
Message ID:
01150485
Vues:
34
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform