in the page load:
txtPremium1.Text = IIf(DSBAISI.Tables("PolicyData").Rows(0).Item("Premium1") & "" = "0.00", "", DSBAISI.Tables("PolicyData").Rows(0).Item("Premium1"))
this line of code will set the text to empty string if the db field "Premium1" is 0.
When I debug this line, the statement on the right side of the equal sign correctly evaluates to "". However the text box still displays "0.00". I need it to just be an empty text box.
Im using asp 2.0. In 1.0 this code worked fine!
txtPremium1.Text = IIf(DSBAISI.Tables("PolicyData").Rows(0).Item("Premium1") & "" = "0.00", "", DSBAISI.Tables("PolicyData").Rows(0).Item("Premium1"))
this line of code will set the text to empty string if the db field "Premium1" is 0.
When I debug this line, the statement on the right side of the equal sign correctly evaluates to "". However the text box still displays "0.00". I need it to just be an empty text box.
Im using asp 2.0. In 1.0 this code worked fine!