Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding control on a page
Message
From
10/11/2010 14:02:50
 
 
To
10/11/2010 13:53:41
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01488738
Message ID:
01488739
Views:
49
Actually, this works. What I meant was adding some code like this but expecting the control in it to be ASP.NETized:
        ' Find the control to hold the customized page
        loControl = Page.FindControl("LabelDataEntry")

            loControlLabel2 = New System.Web.UI.WebControls.Label
            loControlLabel2.Text = "<tr>" + _
             "<td class=""Label""><asp:Label ID=""LabelGenericEntity"" runat=""server""></asp:Label>:</td>" + _
             "<td><img src=""Images/point.gif"" width=3 height=1 /></td>" + _
             "<td><asp:DropDownList ID=""NoEntity"" runat=""server"" Width=300></asp:DropDownList>" + _
             "</tr>"
            loControlLabel.Controls.Add(loControlLabel2)
...and, hoping for NoEntity to be seen after with:
loControl = Page.FindControl("NoEntity")
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