Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if in repeter control

Status
Not open for further replies.

l310564

Programmer
Jun 18, 2006
50
GB
Hi,

What i want to do is if a field in a database = 12 then i want to display a button if it doesn't then don't.

The problem i have is if you use

<%#DataBinder.Eval(Container.DataItem, "Status")%>
then you can't enclose it in an if statement. So how can i acheive this?

Cheers,

Hugh
 
Use the ItemDataBound event


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top