Link to home
Start Free TrialLog in
Avatar of us1975mc
us1975mcFlag for United States of America

asked on

ASP.net Details View visability property

I have this code in a Details view on my page.

<asp:BoundField DataField="txt_BUS_EMAIL" HeaderText="txt_BUS_EMAIL" SortExpression="txt_BUS_EMAIL" Visible='<%# Eval("txt_BUS_EMAIL").ToString().Equals() %>' />

When I go to run it, I get his error:

Databinding expressions are only supported on objects that have a DataBinding event. System.Web.UI.WebControls.BoundField does not have a DataBinding event.

Please advise if any of you have encountered this before!

Thank you in advance!
ASKER CERTIFIED SOLUTION
Avatar of BuggyCoder
BuggyCoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of us1975mc

ASKER

Thanks for the help!