this what my datalist looks like this is the datalist
I tried to cast the table of the HTML as a web control table and then access it style from code behind and change it like I did with the buttons the problem is that the table border wont change
this what my datalist looks like this is the datalist
I tried to cast the table of the HTML as a web control table and then access it style from code behind and change it like I did with the buttons the problem is that the table border wont change
2
Answers
you should set the atribute
runat="server"
to the item you want to change from code behind.and in the code behind yo can try something like this:
where labe4 is the id of the element you want to change
You as a general rule can use the row data bound event.
Say this markup:
And now code behind can look like this:
And data bound, we can use for formatting any control/text box. Say turn City red for city = "Edmonton"
We have this:
results: