 <p>What I ended up having to do for this to work properly was do the logic for if the value was passed or not and then add an attribute manually to my button using Attributes.Add(). </p> <pre><code> 'Logic for button enable If (username Is Nothing) Then eastOpen.Attributes.Add("disabled", "disabled") Else </code></pre>