Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find a control by ID
Message
From
02/05/2012 15:03:12
 
 
To
02/05/2012 14:57:42
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:
01543059
Message ID:
01543060
Views:
40
To find such a control, I only had to do as I do everywhere else such as:
                    ' Find the LiteralSave control
                    loLiteral = oProcess.oPage.FindControl("LiteralSave")

                    ' If we have found it
                    If Not loLiteral Is Nothing Then
                        oProcess.lToolbar = True

                        ' If we use the default class
                        If cToolbarClass = "Toolbar" Then
                            oProcess.lToolbarUseDefaultClass = True
                        End If

                    End If
I don't know why but I was using a generic approach instead of simply using Page.FindControl().
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
Reply
Map
View

Click here to load this message in the networking platform