nate nate - 11 months ago 186
CSS Question

How to make a label blink in in codebehind

I would like for a label to blink or flash in my ASP.NET C# codebehind. Can someone please tell me how I can do that? Here is the code that I have tried:

label1.Attributes.Add("style", "text-decoration:blink");

Using this the label never blinks or flashes. I want to use C# in the codebehind, not JavaScript or HTML.


The "blink" setting for text-decoration has been depreciated, and browsers are not required to support it. Internet Explorer and Chrome to not. Not sure about the others.