utilitaire
Regular
- Joined
- May 4, 2005
- Messages
- 77
<img src="<%=image_path%>" runat=server> ?????
This is a very simple question: how do I put a string value into a tag runat=server like this:
<img src="<%=image_path%>" runat=server>
This simply doesnt work with the runat=server proprety. IIS does not replace the variable «image_path». I need to do use this variable because my images path is dynamic. Please dont suggest me to set the «src» property of the image control in the code-behind class. This is way too messy since I have more than 300 images in my template ascx. I can't just do:
myImg1.Src = image_path;
myImg2.Src = image_path;
myImg3.Src = image_path;
myImg4.Src = image_path;
myImg5.Src = image_path;
myImg6.Src = image_path;
myImg7.Src = image_path;
... and so on
Any Idea?
This is a very simple question: how do I put a string value into a tag runat=server like this:
<img src="<%=image_path%>" runat=server>
This simply doesnt work with the runat=server proprety. IIS does not replace the variable «image_path». I need to do use this variable because my images path is dynamic. Please dont suggest me to set the «src» property of the image control in the code-behind class. This is way too messy since I have more than 300 images in my template ascx. I can't just do:
myImg1.Src = image_path;
myImg2.Src = image_path;
myImg3.Src = image_path;
myImg4.Src = image_path;
myImg5.Src = image_path;
myImg6.Src = image_path;
myImg7.Src = image_path;
... and so on
Any Idea?
Last edited: