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

L

Les Caudle

What would be a method to rewrite the text of every ALT tag on a web page
on-the-fly?
 
L

Laurent Bugnion

Hi,

Les said:
What would be a method to rewrite the text of every ALT tag on a web page
on-the-fly?

On the client or on the server?

Greetings,
Laurent
 
L

Les Caudle

Laurent - On the server - hopefully without having to modify hundreds of IMG
tags to runat="Server".

Thanks, Les Caudle
 
K

Ken Cox [Microsoft MVP]

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.
 
H

Hans Kesting

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top