troubleshooting Question

Adding a dynamic control

Avatar of justin11
justin11 asked on
ASP.NET
2 Comments1 Solution437 ViewsLast Modified:
Hello,

I am trying to add a dynamic control to my existing webapp. I ma not sure how to set the properties of a text box.
Here is the code I am trying to use,but it gives me compilation error. Please help:

Dim TextBox1 As New TextBox
            TextBox1.ID = "EmployeeName_Text"
            TextBox1.ReadOnly = True

TextBox1.Style("Z-INDEX: 107; LEFT: 170px; POSITION: absolute; TOP: 96px")
            TextBox1.BackColor = "Ivory"
            TextBox1.Font = "Verdana"
            TextBox1.FontSize = "XX-Small"
            TextBox1.Width = "200px"
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros