Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encapsulating HTML code within DIV at server
Message
 
À
02/09/2006 01:38:08
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:
01151209
Vues:
33
Have you tried a panel?



>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
>
Ricardo A. Parodi
eSolar, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform