rewrite text of every ALT tag on-the-fly?

  • Thread starter Thread starter Les Caudle
  • Start date Start date
L

Les Caudle

What would be a method to rewrite the text of every ALT tag on a web page
on-the-fly?
 
Laurent - On the server - hopefully without having to modify hundreds of IMG
tags to runat="Server".

Thanks, Les Caudle
 
You could recursively loop through all of the controls on the page and when
you hit an image control make the change. Seems like a lot of cycles though.
 
You could recursively loop through all of the controls on the page and when
you hit an image control make the change. Seems like a lot of cycles though.

And apart from the "lots of cycles", you won't catch the "plain images"
that are not declared with a "runat=server", as that is just text
inside a Literal control to asp.net.

Hans Kesting
 
Back
Top