Repeater itemtemplate if then statement based on database value
Posted on 2008-06-17
I'm trying to setup an itemtemplate for a repeater. What needs to happen is if the database field "inventory" equals 0, then the item should say "(backordered)" otherewise it should display a textbox someone can enter an amount they want to order. I
have no idea how to start this since I don't know how to get an if statement to use a database value without erroring out, or how to setup a function to call other database values from inside the repeater control. I am using C# if that makes a difference.
Any help is appreciated