\' />
Your control is runat="server" Why dont you control the value in codebehind?
runat="server"
If (string.IsNullOrEmpty(TypeofPaintingValue)) { TypeofPainting.Text="NA"; }