How to set repeater dataitem value to string variable in codebehind
Posted on 2010-11-16
I have a repeater I am databinding to the results of a query that pulls 1 record from the database in my codebehind. I want to take the value of one of the dataitems in the repeater and assign it to a variable. I then want to use the variable in the table that loads the reader in the aspx file to determine whether to change the font color of the row.
I have searched and not been able to find it. So if someone could provide me a link to an example or the example itself that would be great.
I am new to the .net environment so if what I ask is worth more points than I am assigning please say so.