J
Jens Weiermann
Hi,
I need to conditionally disable a html (not web forms) button control. The
condition is to be evaluated server-side. What is the smartest way to do
this?
I'm now using a literal server-side control, conditionally placing the
complete html code into the text property a lá
If (SomeCondition)
literal1.Text = "<INPUT type=\"button\" value=\"Something\">";
else
literal1.Text = "<INPUT type=\"button\" value=\"Something\" disabled>";
My guess would be that there is a smarter way to do this... Right?
Thanks!
Jens
I need to conditionally disable a html (not web forms) button control. The
condition is to be evaluated server-side. What is the smartest way to do
this?
I'm now using a literal server-side control, conditionally placing the
complete html code into the text property a lá
If (SomeCondition)
literal1.Text = "<INPUT type=\"button\" value=\"Something\">";
else
literal1.Text = "<INPUT type=\"button\" value=\"Something\" disabled>";
My guess would be that there is a smarter way to do this... Right?
Thanks!
Jens