Dim control As Object = Me.FindControl(ControlId) If (ValuStatus) Then If DbValue.ToUpper() = SelectedValue.ToUpper Then control.Style.Add("disabled", "true") Else control.Style.Add("disabled", "false") End If Else If DbValue.ToUpper <> SelectedValue.ToUpper Then control.Style.Add("disabled", "true") Else control.Style.Add("disabled", "false") End If End If
TextBox1.Enabled=False
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)