Board index » Web Programming » change table cell style in vb code
|
orman1
|
change table cell style in vb code
Web Programming9
asp.net 2.0 using vwd I'm trying to chagne the border of a table cell in my vb code but cannot seem to do it. The cell has an ID of "tdAlert" If txtAlert.Text <>"" Then tdAlert.Style = "width: 547px; border-left-color: red; border-bottom-color: red; border-top-style: solid; border-top-color: red; border-right-style: solid; border-left-style: solid; border-right-color: red; border-bottom-style: solid;" Else tdAlert.Style = "width: 547px;" End If apparently tdAlert doesn't exist. I've saved the project thinking that maybe intellisense would not find it if I didn't save it with the new ID but that didnt' solve the problem. Any ideas on how this can be done? I just need a red border around the cell under certain conditions. Thanks, Keith - |
