Okay. I either need more caffine this morning, or I’m just plain having a blonde moment. I’m trying to dynamically create a bunch of custom container controls when a page loads that is data driven. Everything things seems to run, no errors. However, I see no controls in the web page.
Here’s my code:
[code] Dim sql As String
Dim mdb as new MySQLCommunityServer
Dim data As RecordSet
Dim catName as String
Dim xRow as RowContainer // custom class with image controls and such for a video library interface
Dim xTop as integer = rowNewest.Top + rowNewest.Height + 15 // For establishing the top of each creates row down the page.
mDB.Host = Session.mDBHost
mDB.UserName = Session.mDBUserName
mDB.Password = Session.mDBPassword
mDB.DatabaseName = Session.mDBDatabaseName
mDB.Port = Session.mDBPort
mDB.MultiThreaded = False
if mdb.Connect then
sql = "SELECT * FROM tblCategories" data = mDB.SQLSelect(sql) While Not data.EOF catName = data.Field("CategoryName").StringValue xRow = new RowContainer xRow.Top = xTop xRow.Left = rowNewest.left xRow.Width = rowNewest.Width xRow.LockTop = true xRow.loadCategory(catName) //Code that populates row container xRow.Visible = true xTop = xRow.Height + 15 data.MoveNext Wend
if data <> Nil then
A big pat on the back to whoever can straighten me out. THX!