How to set repeater dataitem value to string variable in codebehind
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.
Thank you for your response. Exactly what I need I think. Just need a little more help. How would I apply if the repeater is bound to a query using the sqldatasource? Recordset has only 1 row with about 15 columns and I am looking to check the column expedite for a value of yes which will then change the entire rows color. Also considering you needed to do a custom write I am uping the points. Thanks.