Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encapsulating HTML code within DIV at server
Message
 
To
02/09/2006 01:38:08
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:
01151209
Views:
32
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform