Suggestion:
Y U NO use razor conditional attributes?