I want to execute this piece of code :
Button_submit.DisplayMode = If(Len(tx_summary.Text) > 50, DisplayMode.Disabled, DisplayMode.Edit)
it gives me the following errors :
Incompatible types for comparison, These types can't be compared: Error, text
Invalid use of '.'
I would like to either disable or enable a button based on whether the user has entered too many or just enough characters. Please help where applicable